oak-domain 5.0.14 → 5.0.15
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/lib/store/filter.js +3 -3
- package/package.json +1 -1
package/lib/store/filter.js
CHANGED
|
@@ -907,11 +907,11 @@ exports.judgeValueRelation = judgeValueRelation;
|
|
|
907
907
|
function judgeFilterSingleAttrRelation(entity, schema, attr, filter, compared, contained) {
|
|
908
908
|
const comparedFilterAttrValue = compared[attr];
|
|
909
909
|
const orDeducedFilters = [];
|
|
910
|
-
if (attr === 'entityId') {
|
|
910
|
+
/* if (attr === 'entityId') {
|
|
911
911
|
// entityId不可能作为查询条件单独存在
|
|
912
|
-
(
|
|
912
|
+
assert(compared.hasOwnProperty('entity'));
|
|
913
913
|
return;
|
|
914
|
-
}
|
|
914
|
+
} */
|
|
915
915
|
for (const attr2 in filter) {
|
|
916
916
|
if (['$and', '$or', '$not'].includes(attr2)) {
|
|
917
917
|
switch (attr2) {
|