From 54542ef34fd9ded5c89df8fa7c90e0099196dd00 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 13 Feb 2021 14:18:19 +0100 Subject: :sparkles: Config init takes default opts --- dist/util/Config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dist/util/Config.js') diff --git a/dist/util/Config.js b/dist/util/Config.js index bde6c735..6c19c436 100644 --- a/dist/util/Config.js +++ b/dist/util/Config.js @@ -25,9 +25,9 @@ require("missing-native-js-functions"); const Database_1 = __importStar(require("./Database")); var Config = new Database_1.MongooseCache(Database_1.default.collection("config"), [], { onlyEvents: false }); exports.default = { - init: async function init() { + init: async function init(defaultOpts = exports.DefaultOptions) { await Config.init(); - return this.setAll(Config.data.merge(exports.DefaultOptions)); + return this.setAll(Config.data.merge(defaultOpts)); }, getAll: function get() { return Config.data; -- cgit 1.5.1