mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Albums: Run UpdateClientConfig asynchronously #5253
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
c5d17c579c
commit
e6dd2020bb
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue