Skip to content

Commit

Permalink
fix(model): fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Aug 25, 2023
1 parent 1d4fcad commit 13c2ad0
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 @@ -3497,7 +3497,7 @@ Model.bulkWrite = async function bulkWrite(ops, options) {
validOps = validOps.sort().map(index => ops[index]);

if (validOps.length === 0) {
return cb(null, getDefaultBulkwriteResult());
return resolve(getDefaultBulkwriteResult());
}

this.$__collection.bulkWrite(validOps, options, (error, res) => {
Expand Down

0 comments on commit 13c2ad0

Please sign in to comment.