Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history


Re: #9188
  • Loading branch information
vkarpov15 committed Aug 14, 2020
1 parent f2e635e commit d374f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/model/castBulkWrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ module.exports = function castBulkWrite(originalModel, op, options) {
overwrite: false,
upsert: op['updateOne'].upsert
});

} catch (error) {
return callback(error, null);
}
Expand Down Expand Up @@ -152,6 +151,7 @@ module.exports = function castBulkWrite(originalModel, op, options) {
if (error) {
return callback(error, null);
}
op['replaceOne']['replacement'] = op['replaceOne']['replacement'].toBSON();
callback(null);
});
};
Expand Down

0 comments on commit d374f14

Please sign in to comment.