@travetto/model-mongo 3.0.0-rc.2 → 3.0.0-rc.3
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 +4 -4
- package/src/service.ts +1 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-mongo",
|
|
3
3
|
"displayName": "MongoDB Model Support",
|
|
4
|
-
"version": "3.0.0-rc.
|
|
4
|
+
"version": "3.0.0-rc.3",
|
|
5
5
|
"description": "Mongo backing for the travetto model module.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mongo",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"directory": "module/model-mongo"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@travetto/config": "^3.0.0-rc.
|
|
30
|
-
"@travetto/model": "^3.0.0-rc.
|
|
31
|
-
"@travetto/model-query": "3.0.0-rc.
|
|
29
|
+
"@travetto/config": "^3.0.0-rc.3",
|
|
30
|
+
"@travetto/model": "^3.0.0-rc.3",
|
|
31
|
+
"@travetto/model-query": "3.0.0-rc.3",
|
|
32
32
|
"mongodb": "^4.9.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
package/src/service.ts
CHANGED
|
@@ -297,9 +297,7 @@ export class MongoModelService implements
|
|
|
297
297
|
});
|
|
298
298
|
|
|
299
299
|
await new Promise<unknown>((resolve, reject) => {
|
|
300
|
-
input.pipe(writeStream);
|
|
301
|
-
input.on('error', reject);
|
|
302
|
-
writeStream.once('finish', resolve);
|
|
300
|
+
input.pipe(writeStream).on('finish', resolve).on('error', reject);
|
|
303
301
|
});
|
|
304
302
|
}
|
|
305
303
|
|