fix broadcasting config on activating and upserting configs
This commit is contained in:
1 parent
c95964fa3c
commit
14c5b0a678
6 files changed
+24
-18
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user