Skip to content

Commit 13c2ad0

Browse files
committed
fix(model): fix merge issue
1 parent 1d4fcad commit 13c2ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3497,7 +3497,7 @@ Model.bulkWrite = async function bulkWrite(ops, options) {
34973497
validOps = validOps.sort().map(index => ops[index]);
34983498

34993499
if (validOps.length === 0) {
3500-
return cb(null, getDefaultBulkwriteResult());
3500+
return resolve(getDefaultBulkwriteResult());
35013501
}
35023502

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

0 commit comments

Comments
 (0)