mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 18:15:41 +00:00
Don't override existing config values
This commit is contained in:
@@ -17,7 +17,9 @@ export const Config = {
|
||||
console.log('[Config] Loading configuration...')
|
||||
pairs = await ConfigEntity.find();
|
||||
config = pairsToConfig(pairs);
|
||||
config = (config || {}).merge(new ConfigValue());
|
||||
// TODO: this overwrites existing config values with defaults.
|
||||
// we actually want to extend the object with new keys instead.
|
||||
// config = (config || {}).merge(new ConfigValue());
|
||||
|
||||
if (process.env.CONFIG_PATH) {
|
||||
console.log(`[Config] Using config path from environment rather than database.`);
|
||||
|
||||
Reference in New Issue
Block a user