Merge remote-tracking branch 'origin/add_conf_version' into feat_broadcasting

# Conflicts:
#	go.mod
#	go.sum
This commit is contained in:
d1slike committed 2020-06-03 14:09:57 +03:00
commit 1764ce9a30
4 files changed
+11 -3

No files matched your search

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