@infrab4a/connect-nestjs 1.1.0 → 1.1.2
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -186,7 +186,7 @@ class ConnectDocumentService {
|
|
|
186
186
|
if (this.reference)
|
|
187
187
|
this.reference.update(data);
|
|
188
188
|
else
|
|
189
|
-
await this.reference.
|
|
189
|
+
await this.reference.set(data);
|
|
190
190
|
return this;
|
|
191
191
|
}
|
|
192
192
|
async delete() {
|
|
@@ -267,7 +267,7 @@ class ConnectCollectionService {
|
|
|
267
267
|
if (connect.isEmpty(id))
|
|
268
268
|
return this.reference.add(data);
|
|
269
269
|
const docRef = this.reference.doc(id);
|
|
270
|
-
await docRef.
|
|
270
|
+
await docRef.set(data);
|
|
271
271
|
return docRef;
|
|
272
272
|
}
|
|
273
273
|
}
|
package/index.esm.js
CHANGED
|
@@ -182,7 +182,7 @@ class ConnectDocumentService {
|
|
|
182
182
|
if (this.reference)
|
|
183
183
|
this.reference.update(data);
|
|
184
184
|
else
|
|
185
|
-
await this.reference.
|
|
185
|
+
await this.reference.set(data);
|
|
186
186
|
return this;
|
|
187
187
|
}
|
|
188
188
|
async delete() {
|
|
@@ -263,7 +263,7 @@ class ConnectCollectionService {
|
|
|
263
263
|
if (isEmpty(id))
|
|
264
264
|
return this.reference.add(data);
|
|
265
265
|
const docRef = this.reference.doc(id);
|
|
266
|
-
await docRef.
|
|
266
|
+
await docRef.set(data);
|
|
267
267
|
return docRef;
|
|
268
268
|
}
|
|
269
269
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect-nestjs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/B4AGroup/b4a-firebase-libs"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@infrab4a/connect": "
|
|
12
|
+
"@infrab4a/connect": "4.9.4",
|
|
13
13
|
"@nestjs/common": "^10.3.3",
|
|
14
14
|
"@nestjs/core": "^10.3.3",
|
|
15
15
|
"firebase-admin": "^12.0.0"
|