@shisyamo4131/air-guard-v2-schemas 2.0.5 → 2.1.1
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/package.json
CHANGED
|
@@ -486,8 +486,11 @@ export default class ArrangementNotification extends SiteOperationScheduleDetail
|
|
|
486
486
|
const performTransaction = async (txn) => {
|
|
487
487
|
// Delete all notification documents if workerIds is empty.
|
|
488
488
|
if (workerIds.length === 0) {
|
|
489
|
-
|
|
490
|
-
const docs =
|
|
489
|
+
// 関数を変数に代入せず、直接呼び出す
|
|
490
|
+
const docs =
|
|
491
|
+
await ArrangementNotification.fetchDocsBySiteOperationScheduleId(
|
|
492
|
+
siteOperationScheduleId
|
|
493
|
+
);
|
|
491
494
|
if (docs.length === 0) return;
|
|
492
495
|
await Promise.all(
|
|
493
496
|
docs.map((doc) => doc.delete({ transaction: txn }))
|