diff --git a/lib/query.js b/lib/query.js index c8646edc3c8..89a27f3166e 100644 --- a/lib/query.js +++ b/lib/query.js @@ -3543,10 +3543,10 @@ Query.prototype._findAndModify = function(type, callback) { if (error) { return callback(error); } - _legacyFindAndModify.call(_this, castedQuery, this._update, opts, cb); + _legacyFindAndModify.call(_this, castedQuery, _this._update, opts, cb); }); } else { - _legacyFindAndModify.call(_this, castedQuery, this._update, opts, cb); + _legacyFindAndModify.call(_this, castedQuery, _this._update, opts, cb); } return this;