home: custom client cache

This commit is contained in:
Stanislav Chzhen 2024-10-09 17:30:58 +03:00
parent 6363f8a2e7
commit 66fa039ede
1 changed files with 5 additions and 0 deletions

View File

@ -417,6 +417,11 @@ func (clients *clientsContainer) UpstreamConfigByID(
)
c.UpstreamConfig = conf
err = clients.storage.Update(c.Name, c)
if err != nil {
return nil, fmt.Errorf("setting upstream config: %w", err)
}
return conf, nil
}