summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 14:04:40 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 14:04:40 +0100
commitce2567bbbdf0b245a40f3015180819d955313462 (patch)
treedb98c22ef88ea74263373bb9677963dacddcf734 /src/util
parent:bug: fix2 Message Model (diff)
downloadserver-ce2567bbbdf0b245a40f3015180819d955313462.tar.xz
:bug: fix Config
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Config.ts2
1 files changed, 1 insertions, 1 deletions
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 <DefaultOptions>Config.data;
 	},
 	setAll: function set(val: any) {
-		return db.collection("config").updateOne({}, { $set: val });
+		return db.collection("config").updateOne({}, { $set: val }, { upsert: true });
 	},
 };