Skip to content

Commit bc2ce91

Browse files
committed
DatabaseResult insertId change type to any
1 parent 9bcdc5f commit bc2ce91

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/crud/crud-base-builder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export abstract class CrudBaseBuilder<T, TColumnsBuilder extends ColumnsValuesBu
1717
constructor(
1818
protected readonly _typeT: new () => T,
1919
protected readonly _alias: string = void 0,
20-
// protected readonly _modelToSave: T = void 0,
2120
) {
2221
this._tablename = _typeT.name;
2322
if (!this._alias) {

src/definitions/database-definition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface DatabaseObject {
4747
export interface DatabaseResult {
4848
rows: DatabaseRowList;
4949
rowsAffected: number;
50-
insertId: number;
50+
insertId: any;
5151
}
5252

5353
export interface DatabaseRowList {

0 commit comments

Comments
 (0)