删除任务信息接口bug修复
Former-commit-id: 5a33aba8bf7d6cfbfabec8a25e3f8846f689111c
This commit is contained in:
parent
9b3da9a6c1
commit
a12d6c2998
|
@ -31,7 +31,7 @@ func (l *DeleteTaskLogic) DeleteTask(req *types.DeleteTaskReq) error {
|
||||||
return tx.Error
|
return tx.Error
|
||||||
}
|
}
|
||||||
// 将子任务信息修改为待删除
|
// 将子任务信息修改为待删除
|
||||||
tx = l.svcCtx.DbEngin.Model(&model.Task{}).Where("id", req.Id).Update("status", "WaitDelete")
|
tx = l.svcCtx.DbEngin.Model(&model.Cloud{}).Where("task_id", req.Id).Update("status", "WaitDelete")
|
||||||
if tx.Error != nil {
|
if tx.Error != nil {
|
||||||
return tx.Error
|
return tx.Error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue