diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts index ad70d37a..83370df4 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -5,9 +5,9 @@ import db, { MongooseCache } from "./Database"; var Config = new MongooseCache(db.collection("config"), [], { onlyEvents: false }); export default { - init: async function init() { + init: async function init(defaultOpts: any = DefaultOptions) { await Config.init(); - return this.setAll(Config.data.merge(DefaultOptions)); + return this.setAll(Config.data.merge(defaultOpts)); }, getAll: function get() { return <DefaultOptions>Config.data; |