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.
@@ -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();
@@ -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 !== 0; });
874
+ return count.then(function (count2) { return count2 === 0; });
875
875
  }
876
- return count !== 0;
876
+ return count === 0;
877
877
  }
878
878
  exports.checkFilterRepel = checkFilterRepel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oak-domain",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "author": {
5
5
  "name": "XuChang"
6
6
  },