query-core 0.1.19 → 0.1.20

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 +1 -1
  2. package/src/services.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "query-core",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "query",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/services.ts CHANGED
@@ -427,8 +427,8 @@ export class SqlWriter<T, ID> extends SqlLoader<T, ID> {
427
427
  return Promise.resolve(0);
428
428
  }
429
429
  }
430
- patch(obj: T, ctx?: any): Promise<number> {
431
- return this.update(obj, ctx);
430
+ patch(obj: Partial<T>, ctx?: any): Promise<number> {
431
+ return this.update(obj as any, ctx);
432
432
  }
433
433
  delete(id: ID, ctx?: any): Promise<number> {
434
434
  const stmt = buildToDelete<ID>(id, this.table, this.primaryKeys, this.param);