阶段性提交

This commit is contained in:
GoEdgeLab
2020-12-23 09:52:50 +08:00
parent 1534579f7e
commit b578f50b3e
8 changed files with 247 additions and 146 deletions

View File

@@ -486,6 +486,10 @@ func (this *ServerDAO) UpdateServerNames(serverId int64, serverNames []byte) err
serverNames = []byte("[]")
}
op.ServerNames = serverNames
err := this.Save(op)
if err != nil {
return err
}
return this.createEvent()
}
@@ -503,7 +507,11 @@ func (this *ServerDAO) UpdateAuditingServerNames(serverId int64, isAuditing bool
} else {
op.AuditingServerNames = auditingServerNamesJSON
}
op.AuditingResult = `{"isOk":true}`
err := this.Save(op)
if err != nil {
return err
}
return this.createEvent()
}