oak-domain 2.3.1 → 2.3.2
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/checker.js +3 -0
- package/lib/store/filter.js +2 -2
- package/package.json +1 -1
package/lib/store/checker.js
CHANGED
|
@@ -304,6 +304,9 @@ function createRelationHierarchyCheckers(schema) {
|
|
|
304
304
|
entity: userEntityName_1,
|
|
305
305
|
action: 'remove',
|
|
306
306
|
type: 'expressionRelation',
|
|
307
|
+
conditionalFilter: {
|
|
308
|
+
relation: r,
|
|
309
|
+
},
|
|
307
310
|
expression: function (operation, context) {
|
|
308
311
|
var _a, _b;
|
|
309
312
|
var userId = context.getCurrentUserId();
|
package/lib/store/filter.js
CHANGED
|
@@ -871,8 +871,8 @@ function checkFilterRepel(entity, context, filter1, filter2) {
|
|
|
871
871
|
blockTrigger: true,
|
|
872
872
|
});
|
|
873
873
|
if (count instanceof Promise) {
|
|
874
|
-
return count.then(function (count2) { return count2
|
|
874
|
+
return count.then(function (count2) { return count2 === 0; });
|
|
875
875
|
}
|
|
876
|
-
return count
|
|
876
|
+
return count === 0;
|
|
877
877
|
}
|
|
878
878
|
exports.checkFilterRepel = checkFilterRepel;
|