Skip to content

Commit 7759572

Browse files
committed
replace addtional deprecated methods in mongodb adapter
1 parent 2dea30d commit 7759572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/store/databases/mongodb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,13 @@ _.extend(Mongo.prototype, {
352352
return callback(err);
353353
}
354354

355-
this.store.update({ _id: sagaId, '_commands.id': cmdId }, { $pull: { '_commands': { id: cmdId } } }, { safe: true }, function (err) {
355+
this.store.updateOne({ _id: sagaId, '_commands.id': cmdId }, { $pull: { '_commands': { id: cmdId } } }, { safe: true }, function (err) {
356356
if (callback) callback(err);
357357
});
358358
},
359359

360360
clear: function (callback) {
361-
this.store.remove({}, { safe: true }, callback);
361+
this.store.deleteMany({}, { safe: true }, callback);
362362
}
363363

364364
});

0 commit comments

Comments
 (0)