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 --- src/util/Config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util/Config.ts b/src/util/Config.ts index 83370df4..374fb0b3 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -13,7 +13,7 @@ export default { return Config.data; }, setAll: function set(val: any) { - return db.collection("config").updateOne({}, { $set: val }); + return db.collection("config").updateOne({}, { $set: val }, { upsert: true }); }, }; -- cgit 1.5.1