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.
- package/package.json +1 -1
- package/src/services.ts +2 -2
package/package.json
CHANGED
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
|
|
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);
|