@travetto/model-mongo 4.1.2 → 4.1.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/LICENSE +1 -1
- package/package.json +6 -6
- package/src/service.ts +1 -1
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-mongo",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
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": "^4.1.
|
|
29
|
-
"@travetto/model": "^4.1.
|
|
30
|
-
"@travetto/model-query": "^4.1.
|
|
31
|
-
"mongodb": "^6.
|
|
28
|
+
"@travetto/config": "^4.1.1",
|
|
29
|
+
"@travetto/model": "^4.1.3",
|
|
30
|
+
"@travetto/model-query": "^4.1.3",
|
|
31
|
+
"mongodb": "^6.7.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@travetto/command": "^4.1.
|
|
34
|
+
"@travetto/command": "^4.1.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/command": {
|
package/src/service.ts
CHANGED
|
@@ -232,7 +232,7 @@ export class MongoModelService implements
|
|
|
232
232
|
await SchemaValidator.validate(cls, item, view);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
item = await ModelCrudUtil.prePersist(cls, item);
|
|
235
|
+
item = await ModelCrudUtil.prePersist(cls, item, 'partial');
|
|
236
236
|
|
|
237
237
|
let final: Record<string, unknown> = item;
|
|
238
238
|
|