From e8f6b797a1a5998f87bddae2d34adc0869dd18e9 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Fri, 20 Sep 2024 10:10:17 +0200 Subject: [PATCH] replace deprecated method save to insertOne --- lib/models/rulesStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {