Skip to content

Commit

Permalink
Merge pull request #11405 from Uzlopak/call-not-apply
Browse files Browse the repository at this point in the history
fix broken MongooseArray
  • Loading branch information
vkarpov15 committed Feb 16, 2022
2 parents 30fd927 + fbb73f2 commit f96c36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/array/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function MongooseArray(values, path, doc, schematype) {
} else {
__array = new Array();
for (let i = 0; i < len; ++i) {
_basePush.apply(__array, values[i]);
_basePush.call(__array, values[i]);
}
}
} else {
Expand Down

0 comments on commit f96c36d

Please sign in to comment.