@travetto/model-elasticsearch 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 +5 -5
- package/src/service.ts +2 -0
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-elasticsearch",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Elasticsearch backing for the travetto model module, with real-time modeling support for Elasticsearch mappings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"elasticsearch",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@elastic/elasticsearch": "^8.13.1",
|
|
31
|
-
"@travetto/config": "^4.1.
|
|
32
|
-
"@travetto/model": "^4.1.
|
|
33
|
-
"@travetto/model-query": "^4.1.
|
|
31
|
+
"@travetto/config": "^4.1.1",
|
|
32
|
+
"@travetto/model": "^4.1.3",
|
|
33
|
+
"@travetto/model-query": "^4.1.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@travetto/command": "^4.1.
|
|
36
|
+
"@travetto/command": "^4.1.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@travetto/command": {
|
package/src/service.ts
CHANGED
|
@@ -214,6 +214,8 @@ export class ElasticsearchModelService implements
|
|
|
214
214
|
async updatePartial<T extends ModelType>(cls: Class<T>, data: Partial<T> & { id: string }): Promise<T> {
|
|
215
215
|
ModelCrudUtil.ensureNotSubType(cls);
|
|
216
216
|
|
|
217
|
+
await ModelCrudUtil.prePersist(cls, data, 'partial');
|
|
218
|
+
|
|
217
219
|
const script = ElasticsearchSchemaUtil.generateUpdateScript(data);
|
|
218
220
|
const id = data.id;
|
|
219
221
|
|