File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sqlkit" ,
3
- "version" : " 1.0.5 " ,
3
+ "version" : " 1.0.6 " ,
4
4
"description" : " A lightweight SQL builder for TypeScript" ,
5
5
"license" : " MIT" ,
6
6
"author" : {
Original file line number Diff line number Diff line change @@ -105,11 +105,13 @@ export class Repository<T> {
105
105
}
106
106
107
107
async delete (
108
- where : WhereCondition < T > ,
109
- returning ?: Array < keyof T >
108
+ arg : {
109
+ where : WhereCondition < T > ;
110
+ returning ?: Array < keyof T > ;
111
+ }
110
112
) : Promise < T | null > {
111
113
const builder = new DeleteQueryBuilder < T > ( this . tableName , this . executor ) ;
112
- const result = await builder . where ( where ) . returning ( returning ) . commit ( ) ;
114
+ const result = await builder . where ( arg . where ) . returning ( arg . returning ) . commit ( ) ;
113
115
return result . rows [ 0 ] ?? null ;
114
116
}
115
117
}
You can’t perform that action at this time.
0 commit comments