@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-guard-v2-schemas",
3
- "version": "2.0.5",
3
+ "version": "2.1.1",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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
- const fn = ArrangementNotification.fetchDocsBySiteOperationScheduleId;
490
- const docs = await fn(siteOperationScheduleId);
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 }))