add default config

This commit is contained in:
DeniskaRediska committed 2019-05-13 15:35:06 +03:00
1 parent ebf715c368
commit a39a53561e
1 file changed
+1 -2
+1 -2
View File
@@ -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 {