Skip to content

Commit f7ee20b

Browse files
committed
Backport app from metarhia/Example
PR-URL: #184
1 parent 6a11a7e commit f7ee20b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+422
-104
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"rules": {
3+
"strict": [
4+
"error",
5+
"never"
6+
]
7+
},
8+
"globals": {
9+
"application": "readonly",
10+
"context": "readonly",
11+
"api": "readonly"
12+
}
13+
}
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
async ({ countryId }) => {
22
const fields = ['Id', 'Name'];
33
const where = { countryId };
4-
const data = await application.db.select('City', fields, where);
4+
const data = await domain.database.example.select('City', fields, where);
55
return { result: 'success', data };
66
};
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
async () => {
22
const fields = ['Id', 'Name'];
3-
const data = await application.db.select('Country', fields);
3+
const data = await domain.database.example.select('Country', fields);
44
return { result: 'success', data };
55
};

application/api/example.1/error.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
async () => new Error('Hello!', 54321);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
async () => {
2+
throw new Error('Hello', 12345);
3+
};

0 commit comments

Comments
 (0)