Manager: include worker name when returning blocklist

This commit is contained in:
Sybren A. Stüvel 2022-08-01 18:03:17 +02:00
parent 1caa4c2a59
commit f3aab8611c

View File

@ -354,8 +354,9 @@ func (f *Flamenco) FetchJobBlocklist(e echo.Context, jobID string) error {
apiList := api.JobBlocklist{} apiList := api.JobBlocklist{}
for _, item := range list { for _, item := range list {
apiList = append(apiList, api.JobBlocklistEntry{ apiList = append(apiList, api.JobBlocklistEntry{
TaskType: item.TaskType, TaskType: item.TaskType,
WorkerId: item.Worker.UUID, WorkerId: item.Worker.UUID,
WorkerName: &item.Worker.Name,
}) })
} }