Skip to content

Commit

Permalink
Merge pull request #13220 from Triple-Whale/master
Browse files Browse the repository at this point in the history
Fix #13219
  • Loading branch information
vkarpov15 committed Apr 5, 2023
2 parents 6e7ae65 + aaddf3d commit f059573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -3208,6 +3208,8 @@ Query.prototype.findOneAndUpdate = function(criteria, doc, options) {
Query.prototype._findOneAndUpdate = async function _findOneAndUpdate() {
this._castConditions();

_castArrayFilters(this);

if (this.error()) {
throw this.error();
}
Expand Down

0 comments on commit f059573

Please sign in to comment.