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 11{
22 "name" : " sqlkit" ,
3- "version" : " 1.0.5 " ,
3+ "version" : " 1.0.6 " ,
44 "description" : " A lightweight SQL builder for TypeScript" ,
55 "license" : " MIT" ,
66 "author" : {
Original file line number Diff line number Diff line change @@ -105,11 +105,13 @@ export class Repository<T> {
105105 }
106106
107107 async delete (
108- where : WhereCondition < T > ,
109- returning ?: Array < keyof T >
108+ arg : {
109+ where : WhereCondition < T > ;
110+ returning ?: Array < keyof T > ;
111+ }
110112 ) : Promise < T | null > {
111113 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 ( ) ;
113115 return result . rows [ 0 ] ?? null ;
114116 }
115117}
You can’t perform that action at this time.
0 commit comments