@shisyamo4131/air-firebase-v2-client-adapter 2.0.0 → 2.0.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/index.js +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -233,8 +233,8 @@ class ClientAdapter {
|
|
|
233
233
|
|
|
234
234
|
try {
|
|
235
235
|
// Pre-create hooks and validation
|
|
236
|
-
await this.beforeCreate();
|
|
237
|
-
await this.beforeEdit();
|
|
236
|
+
await this.beforeCreate(args);
|
|
237
|
+
await this.beforeEdit(args);
|
|
238
238
|
this.validate();
|
|
239
239
|
|
|
240
240
|
// transaction processing
|
|
@@ -622,8 +622,8 @@ class ClientAdapter {
|
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
try {
|
|
625
|
-
await this.beforeUpdate();
|
|
626
|
-
await this.beforeEdit();
|
|
625
|
+
await this.beforeUpdate(args);
|
|
626
|
+
await this.beforeEdit(args);
|
|
627
627
|
this.validate();
|
|
628
628
|
|
|
629
629
|
const performTransaction = async (txn) => {
|
|
@@ -749,7 +749,7 @@ class ClientAdapter {
|
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
try {
|
|
752
|
-
await this.beforeDelete();
|
|
752
|
+
await this.beforeDelete(args);
|
|
753
753
|
|
|
754
754
|
const collectionPath = this.constructor.getCollectionPath(prefix);
|
|
755
755
|
const colRef = collection(ClientAdapter.firestore, collectionPath);
|