add default config
This commit is contained in:
1 parent
ebf715c368
commit
a39a53561e
1 file changed
+1
-2
+1
-2
@@ -145,9 +145,8 @@ func onReceiveRemoteConfigSchema(so socketio.Socket, msg string) string {
|
||||
logger.Warn(err)
|
||||
return errorMsg
|
||||
}
|
||||
var schema *entity.ConfigSchema
|
||||
if len(res) > 0 {
|
||||
schema = &res[0]
|
||||
schema := &res[0]
|
||||
schema.Schema = s.Schema
|
||||
schema.Version = s.Version
|
||||
if _, err := model.SchemaRep.UpdateConfigSchema(schema); err != nil {
|
||||
|
||||
Reference in new issue
Block a user