mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-08 11:20:26 +08:00
修复修改服务配置时同步任务被覆盖的问题
This commit is contained in:
@@ -154,7 +154,8 @@ func (this *NodeTaskDAO) ExtractNodeClusterTask(tx *dbs.Tx, clusterId int64, use
|
|||||||
_, err = this.Query(tx).
|
_, err = this.Query(tx).
|
||||||
Attr("role", nodeconfigs.NodeRoleNode).
|
Attr("role", nodeconfigs.NodeRoleNode).
|
||||||
Attr("clusterId", clusterId).
|
Attr("clusterId", clusterId).
|
||||||
Where("nodeId> 0").
|
Attr("serverId", serverId).
|
||||||
|
Gt("nodeId", 0).
|
||||||
Attr("type", taskType).
|
Attr("type", taskType).
|
||||||
Delete()
|
Delete()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user