Skip to content

Commit e030f84

Browse files
committed
query() is expected to return a promise
1 parent f16dee5 commit e030f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ Client.prototype.query = function (config, values, callback) {
373373
if (query.callback) {
374374
query.callback(new Error('Could not accept query, because connection has ended'))
375375
}
376-
return
376+
return result
377377
}
378378

379379
if (this.binary && !query.binary) {

0 commit comments

Comments
 (0)