mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-11 16:24:11 +01:00
Albums: Run UpdateClientConfig asynchronously #5253
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -11,7 +11,9 @@ import (
|
||||
|
||||
// UpdateClientConfig publishes updated client configuration values over the websocket connections.
|
||||
func UpdateClientConfig() {
|
||||
event.Publish("config.updated", event.Data{"config": get.Config().ClientUser(false)})
|
||||
go func() {
|
||||
event.Publish("config.updated", event.Data{"config": get.Config().ClientUser(false)})
|
||||
}()
|
||||
}
|
||||
|
||||
// GetClientConfig returns the client configuration values as JSON.
|
||||
|
||||
Reference in New Issue
Block a user