@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.
|
@@ -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: { $
|
|
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