diff --git a/lib/models/rulesStore.js b/lib/models/rulesStore.js index 8d01fd96..2926f2b9 100644 --- a/lib/models/rulesStore.js +++ b/lib/models/rulesStore.js @@ -190,7 +190,11 @@ module.exports = { db.collection.bind(db, rulesCollectionName, { strict: true }), function(col, cb) { col.findOneAndUpdate( - { name: id }, + { + name: id, + service: r.service, + subservice: r.subservice + }, { $set: r }, { upsert: false,