Skip to content

Commit

Permalink
fix broken MongooseArray
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Feb 15, 2022
1 parent 562fb9d commit fbb73f2
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 fbb73f2

Please sign in to comment.