Skip to content

Commit

Permalink
fix: update copy stream event end -> finish
Browse files Browse the repository at this point in the history
  • Loading branch information
meenahoda authored and Meena Brend committed Feb 23, 2021
1 parent 559c881 commit 2f50482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/copy-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function copyStream (statement, params, client) {
const stream = client.query(
copyFrom(newStatement)
)
stream.on('end', function () {
stream.on('finish', function () {
resolve()
}).on('error', function (err) {
reject(err)
Expand Down

0 comments on commit 2f50482

Please sign in to comment.