@ruiapp/rapid-core 0.10.6 → 0.10.7
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/dist/index.js +5 -2
- package/package.json +1 -1
- package/src/dataAccess/entityManager.ts +7 -2
package/dist/index.js
CHANGED
|
@@ -2971,7 +2971,10 @@ async function convertEntityFiltersToRowFilters(routeContext, server, model, bas
|
|
|
2971
2971
|
}
|
|
2972
2972
|
}
|
|
2973
2973
|
}
|
|
2974
|
-
|
|
2974
|
+
let itemType;
|
|
2975
|
+
if (filter.operator === "in" || filter.operator === "notIn") {
|
|
2976
|
+
itemType = filter.itemType || pgPropertyTypeColumnMap[property.type];
|
|
2977
|
+
}
|
|
2975
2978
|
replacedFilters.push({
|
|
2976
2979
|
operator: filter.operator,
|
|
2977
2980
|
field: {
|
|
@@ -2979,7 +2982,7 @@ async function convertEntityFiltersToRowFilters(routeContext, server, model, bas
|
|
|
2979
2982
|
tableName: property && property.isBaseProperty ? baseModel.tableName : model.tableName,
|
|
2980
2983
|
},
|
|
2981
2984
|
value: filterValue,
|
|
2982
|
-
itemType
|
|
2985
|
+
itemType,
|
|
2983
2986
|
});
|
|
2984
2987
|
}
|
|
2985
2988
|
}
|
package/package.json
CHANGED
|
@@ -59,6 +59,7 @@ import { newEntityOperationError } from "~/utilities/errorUtility";
|
|
|
59
59
|
import { getNowStringWithTimezone } from "~/utilities/timeUtility";
|
|
60
60
|
import { RouteContext } from "~/core/routeContext";
|
|
61
61
|
import { validateEntity } from "./entityValidator";
|
|
62
|
+
import { pgPropertyTypeColumnMap } from "./columnTypeMapper";
|
|
62
63
|
|
|
63
64
|
export type FindOneRelationEntitiesOptions = {
|
|
64
65
|
server: IRpdServer;
|
|
@@ -611,7 +612,11 @@ async function convertEntityFiltersToRowFilters(
|
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
614
|
|
|
614
|
-
|
|
615
|
+
let itemType: string | undefined;
|
|
616
|
+
if (filter.operator === "in" || filter.operator === "notIn") {
|
|
617
|
+
itemType = filter.itemType || pgPropertyTypeColumnMap[property.type];
|
|
618
|
+
}
|
|
619
|
+
|
|
615
620
|
replacedFilters.push({
|
|
616
621
|
operator: filter.operator,
|
|
617
622
|
field: {
|
|
@@ -619,7 +624,7 @@ async function convertEntityFiltersToRowFilters(
|
|
|
619
624
|
tableName: property && property.isBaseProperty ? baseModel.tableName : model.tableName,
|
|
620
625
|
},
|
|
621
626
|
value: filterValue,
|
|
622
|
-
itemType
|
|
627
|
+
itemType,
|
|
623
628
|
} as any);
|
|
624
629
|
}
|
|
625
630
|
}
|