@chevre/domain 21.2.0-alpha.59 → 21.2.0-alpha.60

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.
@@ -144,7 +144,9 @@ export declare class MongoRepository {
144
144
  typeOf: factory.transactionType;
145
145
  id: string;
146
146
  };
147
- typeOf: factory.actionType;
147
+ typeOf: {
148
+ $in: factory.actionType[];
149
+ };
148
150
  }): Promise<{
149
151
  deletedCount?: number;
150
152
  } | null>;
@@ -682,7 +682,7 @@ class MongoRepository {
682
682
  return __awaiter(this, void 0, void 0, function* () {
683
683
  return this.actionModel.deleteMany({
684
684
  'project.id': { $eq: params.project.id },
685
- typeOf: { $eq: params.typeOf },
685
+ typeOf: { $in: params.typeOf.$in },
686
686
  'purpose.id': { $exists: true, $eq: params.purpose.id },
687
687
  'purpose.typeOf': { $exists: true, $eq: params.purpose.typeOf }
688
688
  })
@@ -88,7 +88,7 @@ function deleteTransaction(params) {
88
88
  deleteActionResult = yield repos.action.deleteByPurpose({
89
89
  project: { id: transaction.project.id },
90
90
  purpose: { id: transaction.id, typeOf: transaction.typeOf },
91
- typeOf: factory.actionType.AuthorizeAction
91
+ typeOf: { $in: [factory.actionType.AuthorizeAction, factory.actionType.OrderAction] }
92
92
  });
93
93
  // 取引削除
94
94
  yield repos.transaction.findByIdAndDelete({ id: transaction.id });
package/package.json CHANGED
@@ -117,5 +117,5 @@
117
117
  "postversion": "git push origin --tags",
118
118
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
119
119
  },
120
- "version": "21.2.0-alpha.59"
120
+ "version": "21.2.0-alpha.60"
121
121
  }