From ce2567bbbdf0b245a40f3015180819d955313462 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 16 Feb 2021 14:04:40 +0100 Subject: :bug: fix Config --- dist/util/Config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist/util/Config.js') diff --git a/dist/util/Config.js b/dist/util/Config.js index 6c19c436..e2aaa7be 100644 --- a/dist/util/Config.js +++ b/dist/util/Config.js @@ -33,7 +33,7 @@ exports.default = { return Config.data; }, setAll: function set(val) { - return Database_1.default.collection("config").updateOne({}, { $set: val }); + return Database_1.default.collection("config").updateOne({}, { $set: val }, { upsert: true }); }, }; exports.DefaultOptions = { -- cgit 1.5.1