Update packages/pg/lib/client.js

use bring your own promise

Co-Authored-By: Charmander <~@charmander.me>
This commit is contained in:
Brian C 2020-02-21 13:05:23 -06:00 committed by GitHub
parent 81bf8b3f59
commit 7ff80543c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -550,7 +550,7 @@ Client.prototype.end = function (cb) {
if (cb) {
cb()
} else {
return Promise.resolve()
return this._Promise.resolve()
}
}