@shisyamo4131/air-guard-v2-schemas 2.0.1 → 2.0.2-dev.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.1",
3
+ "version": "2.0.2-dev.1",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -158,7 +158,7 @@
158
158
  import Operation from "./Operation.js";
159
159
  import { defField } from "./parts/fieldDefinitions.js";
160
160
  import { ContextualError } from "./utils/index.js";
161
- import { runTransaction } from "firebase/firestore";
161
+ // import { runTransaction } from "firebase/firestore";
162
162
  import ArrangementNotification from "./ArrangementNotification.js";
163
163
  import SiteOperationScheduleDetail from "./SiteOperationScheduleDetail.js";
164
164
 
@@ -449,8 +449,9 @@ export default class SiteOperationSchedule extends Operation {
449
449
  if (updateOptions.transaction) {
450
450
  await performTransaction(updateOptions.transaction);
451
451
  } else {
452
- const firestore = this.constructor.getAdapter().firestore;
453
- await runTransaction(firestore, performTransaction);
452
+ // const firestore = this.constructor.getAdapter().firestore;
453
+ // await runTransaction(firestore, performTransaction);
454
+ await this.constructor.runTransaction(performTransaction);
454
455
  }
455
456
  } catch (error) {
456
457
  this.undo();
@@ -483,8 +484,9 @@ export default class SiteOperationSchedule extends Operation {
483
484
  if (updateOptions.transaction) {
484
485
  await performTransaction(updateOptions.transaction);
485
486
  } else {
486
- const firestore = this.constructor.getAdapter().firestore;
487
- await runTransaction(firestore, performTransaction);
487
+ // const firestore = this.constructor.getAdapter().firestore;
488
+ // await runTransaction(firestore, performTransaction);
489
+ await this.constructor.runTransaction(performTransaction);
488
490
  }
489
491
  } catch (error) {
490
492
  throw new ContextualError(error.message, {