diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-07-07 15:21:30 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-07-07 15:21:30 +0200 |
commit | 137d719ecfad4529169d96d5f45cac9f263edbe8 (patch) | |
tree | 6bf24de515a48606d2bcf04cca92716f92170fbd /src/util | |
parent | 1.3.24 (diff) | |
download | server-137d719ecfad4529169d96d5f45cac9f263edbe8.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 bd8559a8..dfa942e7 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -9,7 +9,7 @@ var Config = new MongooseCache(db.collection("config"), [], { onlyEvents: false, export default { init: async function init(defaultOpts: any = DefaultOptions) { await Config.init(); - return this.set(Config.data.merge(defaultOpts)); + return this.set((Config.data || {}).merge(defaultOpts)); }, get: function get() { return <DefaultOptions>Config.data; |