@travetto/model-redis 5.0.0-rc.9 → 5.0.1

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/service.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-redis",
3
- "version": "5.0.0-rc.9",
3
+ "version": "5.0.1",
4
4
  "description": "Redis backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -25,12 +25,12 @@
25
25
  "directory": "module/model-redis"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/config": "^5.0.0-rc.9",
29
- "@travetto/model": "^5.0.0-rc.9",
30
- "redis": "^4.6.15"
28
+ "@travetto/config": "^5.0.1",
29
+ "@travetto/model": "^5.0.1",
30
+ "redis": "^4.7.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@travetto/command": "^5.0.0-rc.9"
33
+ "@travetto/command": "^5.0.1"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@travetto/command": {
package/src/service.ts CHANGED
@@ -232,7 +232,7 @@ export class RedisModelService implements ModelCrudSupport, ModelExpirySupport,
232
232
  async updatePartial<T extends ModelType>(cls: Class<T>, item: Partial<T> & { id: string }, view?: string): Promise<T> {
233
233
  ModelCrudUtil.ensureNotSubType(cls);
234
234
  const id = item.id;
235
- const updated = await ModelCrudUtil.naivePartialUpdate(cls, item, view, (): Promise<T> => this.get(cls, id));
235
+ const updated = await ModelCrudUtil.naivePartialUpdate(cls, () => this.get(cls, id), item, view);
236
236
  await this.#store(cls, updated, 'write');
237
237
  return updated;
238
238
  }