@travetto/model-mongo 3.3.2 → 3.3.4
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 +5 -5
- package/src/service.ts +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-mongo",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"description": "Mongo backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mongo",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"directory": "module/model-mongo"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@travetto/config": "^3.3.
|
|
29
|
-
"@travetto/model": "^3.3.
|
|
30
|
-
"@travetto/model-query": "^3.3.
|
|
28
|
+
"@travetto/config": "^3.3.4",
|
|
29
|
+
"@travetto/model": "^3.3.4",
|
|
30
|
+
"@travetto/model-query": "^3.3.4",
|
|
31
31
|
"mongodb": "^5.8.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@travetto/command": "^3.3.
|
|
34
|
+
"@travetto/command": "^3.3.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/command": {
|
package/src/service.ts
CHANGED
|
@@ -228,9 +228,7 @@ export class MongoModelService implements
|
|
|
228
228
|
await SchemaValidator.validate(cls, item, view);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
await item.prePersist();
|
|
233
|
-
}
|
|
231
|
+
item = await ModelCrudUtil.prePersist(cls, item);
|
|
234
232
|
|
|
235
233
|
let final: Record<string, unknown> = item;
|
|
236
234
|
|