mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Update packages/pg/lib/client.js
use bring your own promise Co-Authored-By: Charmander <~@charmander.me>
This commit is contained in:
parent
81bf8b3f59
commit
7ff80543c0
@ -550,7 +550,7 @@ Client.prototype.end = function (cb) {
|
||||
if (cb) {
|
||||
cb()
|
||||
} else {
|
||||
return Promise.resolve()
|
||||
return this._Promise.resolve()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user