mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
invoke config listeners when app.UpdateConfig is used (#7773)
This commit is contained in:
committed by
Christopher Speller
parent
2acb548615
commit
85efdd6b5b
@@ -253,7 +253,9 @@ func (a *App) Config() *model.Config {
|
||||
}
|
||||
|
||||
func (a *App) UpdateConfig(f func(*model.Config)) {
|
||||
old := utils.Cfg.Clone()
|
||||
f(utils.Cfg)
|
||||
utils.InvokeGlobalConfigListeners(old, utils.Cfg)
|
||||
}
|
||||
|
||||
func (a *App) PersistConfig() {
|
||||
|
||||
Reference in New Issue
Block a user