Skip to content

Commit b3a7429

Browse files
committed
fix tests
1 parent 9c39f45 commit b3a7429

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/query.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3710,6 +3710,10 @@ Query.prototype.findOneAndReplace = function(filter, replacement, options) {
37103710
);
37113711
}
37123712

3713+
if (replacement != null) {
3714+
this._mergeUpdate(replacement);
3715+
}
3716+
37133717
options = options || {};
37143718

37153719
const returnOriginal = this?.model?.base?.options?.returnOriginal;

0 commit comments

Comments
 (0)