Albums: Run UpdateClientConfig asynchronously #5253

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-10 20:25:20 +02:00
parent c5d17c579c
commit e6dd2020bb

View File

@@ -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.