@travetto/model
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -23,3 +23,3 @@ { | ||
}, | ||
"version": "0.0.29" | ||
"version": "0.0.30" | ||
} |
@@ -162,6 +162,10 @@ import { Class } from '@travetto/registry'; | ||
updatePartialByQuery<T extends ModelCore>(cls: Class<T>, query: ModelQuery<T>, body: Partial<T>) { | ||
async updatePartialByQuery<T extends ModelCore>(cls: Class<T>, query: ModelQuery<T>, body: Partial<T>) { | ||
this.queryService.verify(cls, query); | ||
return this.source.updatePartialByQuery(cls, query, body); | ||
// Do not do pre-persist, because we don't know what we would be validating | ||
const res = await this.source.updatePartialByQuery(cls, query, body); | ||
return this.postLoad(cls, res); | ||
} | ||
@@ -168,0 +172,0 @@ |
37271
931