@clairejs/server 3.19.2 → 3.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataType, getModelById, getServiceProvider, RangeQueryDto, uniqueReducer, leanData, getSystemLocale, Errors, omitData, } from "@clairejs/core";
|
|
2
|
-
import { getDirectFields
|
|
1
|
+
import { DataType, getModelById, getServiceProvider, RangeQueryDto, uniqueReducer, leanData, getSystemLocale, Errors, omitData, MODEL_FIELD_SEPARATOR, } from "@clairejs/core";
|
|
2
|
+
import { getDirectFields } from "@clairejs/orm";
|
|
3
3
|
import { AbstractFileUploadHandler } from "../file-upload/AbstractFileUploadHandler";
|
|
4
4
|
import { AbstractRepository } from "./AbstractRepository";
|
|
5
5
|
import { LocaleTranslation } from "../../system/locale/LocaleTranslation";
|
|
@@ -41,7 +41,7 @@ export class ModelRepository extends AbstractRepository {
|
|
|
41
41
|
getRequestQueryConditionFromQuery(queries, modelMetadata) {
|
|
42
42
|
const result = [];
|
|
43
43
|
for (const fieldMetadata of getDirectFields(modelMetadata)) {
|
|
44
|
-
const fieldName = `${modelMetadata.id}
|
|
44
|
+
const fieldName = `${modelMetadata.id}${MODEL_FIELD_SEPARATOR}${fieldMetadata.name}`;
|
|
45
45
|
const queryValue = queries[fieldMetadata.name];
|
|
46
46
|
if (queryValue === undefined) {
|
|
47
47
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clairejs/server",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.3",
|
|
4
4
|
"description": "Claire server NodeJs framework written in Typescript.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"author": "immort",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@clairejs/client": "^3.4.1",
|
|
18
19
|
"aws-sdk": "^2.841.0",
|
|
19
20
|
"axios": "^0.21.4",
|
|
20
21
|
"cookie-parser": "^1.4.6",
|
|
@@ -33,8 +34,8 @@
|
|
|
33
34
|
"ws": "^7.5.5"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
|
-
"@clairejs/core": "^3.
|
|
37
|
-
"@clairejs/orm": "^3.15.
|
|
37
|
+
"@clairejs/core": "^3.8.2",
|
|
38
|
+
"@clairejs/orm": "^3.15.8"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@types/cookie-parser": "^1.4.3",
|