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 = {
6767 end : ( ) => Promise < void > ,
6868 off : ( eventName : string , listener : ( ...args : any [ ] ) => void ) => void ,
6969 on : ( eventName : string , listener : ( ...args : any [ ] ) => void ) => void ,
70- query : ( sql : string , parameters : SerializableParameter [ ] ) => Promise < QueryResult > ,
70+ query : ( sql : string , parameters ? : SerializableParameter [ ] ) => Promise < QueryResult > ,
7171 release : ( ) => Promise < void > ,
7272} ;
7373
@@ -112,7 +112,7 @@ export const createPostgresBridge = (postgres: typeof Postgres) => {
112112 } ,
113113 off : connectionEvents . off . bind ( connectionEvents ) ,
114114 on : connectionEvents . on . bind ( connectionEvents ) ,
115- query : async ( sql : string , parameters : SerializableParameter [ ] ) : Promise < QueryResult > => {
115+ query : async ( sql : string , parameters ? : SerializableParameter [ ] ) : Promise < QueryResult > => {
116116 // https://github.com/porsager/postgres#result-array
117117 const resultArray = await connection . unsafe ( sql , parameters as any ) ;
118118
You can’t perform that action at this time.
0 commit comments