Skip to content

Commit

Permalink
replace deprecated method save to insertOne
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Sep 20, 2024
1 parent 1cf840d commit e8f6b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/rulesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e8f6b79

Please sign in to comment.