File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export type BridgetClient = {
67
67
end : ( ) => Promise < void > ,
68
68
off : ( eventName : string , listener : ( ...args : any [ ] ) => void ) => void ,
69
69
on : ( eventName : string , listener : ( ...args : any [ ] ) => void ) => void ,
70
- query : ( sql : string , parameters : SerializableParameter [ ] ) => Promise < QueryResult > ,
70
+ query : ( sql : string , parameters ? : SerializableParameter [ ] ) => Promise < QueryResult > ,
71
71
release : ( ) => Promise < void > ,
72
72
} ;
73
73
@@ -112,7 +112,7 @@ export const createPostgresBridge = (postgres: typeof Postgres) => {
112
112
} ,
113
113
off : connectionEvents . off . bind ( connectionEvents ) ,
114
114
on : connectionEvents . on . bind ( connectionEvents ) ,
115
- query : async ( sql : string , parameters : SerializableParameter [ ] ) : Promise < QueryResult > => {
115
+ query : async ( sql : string , parameters ? : SerializableParameter [ ] ) : Promise < QueryResult > => {
116
116
// https://github.com/porsager/postgres#result-array
117
117
const resultArray = await connection . unsafe ( sql , parameters as any ) ;
118
118
You can’t perform that action at this time.
0 commit comments