diff --git a/lib/models/rulesStore.js b/lib/models/rulesStore.js index 2926f2b9..0ca340d6 100644 --- a/lib/models/rulesStore.js +++ b/lib/models/rulesStore.js @@ -172,7 +172,7 @@ module.exports = { [ db.collection.bind(db, rulesCollectionName, { strict: true }), function(col, cb) { - col.save(r, cb); + col.insertOne(r, cb); } ], function(err, result) {