Skip to content

Commit

Permalink
Merge pull request #784 from telefonicaid/fix/provide_service_and_sub…
Browse files Browse the repository at this point in the history
…service_when_update_rule_mongo

Fix/provide service and subservice when update rule mongo
  • Loading branch information
mrutid authored Jun 13, 2024
2 parents 3ba843a + 5e3f0c3 commit d336729
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Fix: upgrade rule in mongo using service and subservice to avoid match with other rule (#783)

1.31.0 (June 11th, 2024)

- Fix: release transport resources of nodemailer after send email
Expand Down
6 changes: 5 additions & 1 deletion lib/models/rulesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d336729

Please sign in to comment.