Skip to content

Commit

Permalink
fix: undefined this on connect error (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzamosenchuk authored Sep 22, 2020
1 parent efdb36e commit 4b1d2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ MongoPersistence.prototype._setup = function () {

this._connect(function (err, client) {
if (err) {
this.emit('error', err)
that.emit('error', err)
return
}

Expand Down

0 comments on commit 4b1d2c3

Please sign in to comment.