fix deploylist empty error

This commit is contained in:
tzwang 2024-08-19 16:34:25 +08:00
parent 4866e1679f
commit 9fc7692cf7
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]