fix broadcasting config on activating and upserting configs

This commit is contained in:
d1slike committed 2020-06-03 15:43:05 +03:00
1 parent c95964fa3c
commit 14c5b0a678
6 files changed
+24 -18

No files matched your search

+1 -4
View File
@@ -67,10 +67,7 @@ func (c *config) CreateUpdateConfig(config domain.CreateUpdateConfigRequest) (*d
Config: config.Config,
Unsafe: config.Unsafe,
}
if config.Id == "" || config.CreateNew {
if config.CreateNew {
upsertConfig.Config.Version++
}
if config.Id == "" {
upsertConfig.Config.Id = state.GenerateId()
upsertConfig.Create = true
}