summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-07 15:21:30 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-07 15:21:30 +0200
commit137d719ecfad4529169d96d5f45cac9f263edbe8 (patch)
tree6bf24de515a48606d2bcf04cca92716f92170fbd /src/util
parent1.3.24 (diff)
downloadserver-137d719ecfad4529169d96d5f45cac9f263edbe8.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 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;