fix deploylist empty error

Former-commit-id: 9fc7692cf7
This commit is contained in:
tzwang 2024-08-19 16:34:25 +08:00
parent 515216ac1c
commit 6f1cb013c7
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ func (l *DeployInstanceListLogic) DeployInstanceList(req *types.DeployInstanceLi
return nil, tx.Error
}
if len(list) == 0 {
return
}
go updater.UpdateDeployInstanceStatusBatch(l.svcCtx, list)
ins := list[0]