Skip to content

Commit

Permalink
Merge pull request #11121 from eltociear/patch-2
Browse files Browse the repository at this point in the history
chore: fix typo in model.js
  • Loading branch information
vkarpov15 authored Dec 20, 2021
2 parents c072e57 + 74b7c8c commit 4f5c0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ function checkDivergentArray(doc, path, array) {
// how to remove elements. $pop will pop off the _id from the end
// of the array in the db which is not guaranteed to be the
// same as the last element we have here. $set of the entire array
// would be similarily destructive as we never received all
// would be similarly destructive as we never received all
// elements of the array and potentially would overwrite data.
const check = pop.options.match ||
pop.options.options && utils.object.hasOwnProperty(pop.options.options, 'limit') || // 0 is not permitted
Expand Down

0 comments on commit 4f5c0a6

Please sign in to comment.