Skip to content

Commit d514dd8

Browse files
committed
fix: test
1 parent f41265c commit d514dd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/pg-pool/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class Pool extends EventEmitter {
402402
return response.result
403403
}
404404

405-
// allow plain text query without values
405+
// allow plain text query without values, but callback
406406
if (typeof values === 'function') {
407407
cb = values
408408
values = undefined

packages/pg/lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ class Client extends EventEmitter {
589589
throw err
590590
})
591591
} else {
592-
if (!(typeof values === 'function')) {
592+
if (!(typeof query.callback === 'function')) {
593593
throw new Error('callback is not a function')
594594
}
595595
}

0 commit comments

Comments
 (0)