@infrab4a/connect 4.9.7 → 4.9.8
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.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -2986,7 +2986,7 @@ const withUpdateFirestore = (MixinBase) => {
|
|
|
2986
2986
|
const req = { collection: collectionName, data };
|
|
2987
2987
|
try {
|
|
2988
2988
|
const identifiers = getValueFromParams(data, keyField);
|
|
2989
|
-
const docRef = this.collection().getDoc(identifiers.toString());
|
|
2989
|
+
const docRef = this.collection(collectionName).getDoc(identifiers.toString());
|
|
2990
2990
|
const plainFromData = this.model.toInstance(this.paramsToPlain(data));
|
|
2991
2991
|
const intercepted = await ((_b = (_a = this.interceptors) === null || _a === void 0 ? void 0 : _a.request) === null || _b === void 0 ? void 0 : _b.call(_a, { instance: plainFromData }));
|
|
2992
2992
|
const builded = (intercepted === null || intercepted === void 0 ? void 0 : intercepted.instance) || plainFromData;
|
package/index.esm.js
CHANGED
|
@@ -2980,7 +2980,7 @@ const withUpdateFirestore = (MixinBase) => {
|
|
|
2980
2980
|
const req = { collection: collectionName, data };
|
|
2981
2981
|
try {
|
|
2982
2982
|
const identifiers = getValueFromParams(data, keyField);
|
|
2983
|
-
const docRef = this.collection().getDoc(identifiers.toString());
|
|
2983
|
+
const docRef = this.collection(collectionName).getDoc(identifiers.toString());
|
|
2984
2984
|
const plainFromData = this.model.toInstance(this.paramsToPlain(data));
|
|
2985
2985
|
const intercepted = await ((_b = (_a = this.interceptors) === null || _a === void 0 ? void 0 : _a.request) === null || _b === void 0 ? void 0 : _b.call(_a, { instance: plainFromData }));
|
|
2986
2986
|
const builded = (intercepted === null || intercepted === void 0 ? void 0 : intercepted.instance) || plainFromData;
|