add defaults to config file

This commit is contained in:
2023-11-03 02:20:08 -07:00
parent ac7820de64
commit ef3350d66d

View File

@@ -37,6 +37,8 @@ func (c *ConfigManager) SetDefault(key string, value any) {
if envVal, ok := c.envConfig[lower]; !ok {
c.mapConfig[lower] = envVal
c.combinedConfig[lower] = envVal
} else {
c.combinedConfig[lower] = ConfigMap{Key: key, Value: value}
}
}
}