diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-16 14:04:40 +0100 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-16 14:04:40 +0100 |
commit | ce2567bbbdf0b245a40f3015180819d955313462 (patch) | |
tree | db98c22ef88ea74263373bb9677963dacddcf734 /src/util | |
parent | :bug: fix2 Message Model (diff) | |
download | server-ce2567bbbdf0b245a40f3015180819d955313462.tar.xz |
:bug: fix Config
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Config.ts | 2 |
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 }); }, }; |