mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix: copy app ID in healthcheck (#12087)
This commit is contained in:
@@ -286,8 +286,11 @@ func ProtoFromAppHealthsRequest(req PostAppHealthsRequest) (*proto.BatchUpdateAp
|
||||
if !ok {
|
||||
return nil, xerrors.Errorf("unknown app health: %s", h)
|
||||
}
|
||||
|
||||
var idCopy uuid.UUID
|
||||
copy(idCopy[:], id[:])
|
||||
pReq.Updates = append(pReq.Updates, &proto.BatchUpdateAppHealthRequest_HealthUpdate{
|
||||
Id: id[:],
|
||||
Id: idCopy[:],
|
||||
Health: proto.AppHealth(hp),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user