correct the error channel

This commit is contained in:
pb 2025-05-26 19:21:28 +02:00
parent 7223b79fe8
commit 527e622774

View File

@ -91,8 +91,8 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest)
go getBooking(l, b, request, wf, execs, bookings, errCh)
}
for err := range(errCh){
if err != nil {
for i := 0; i < len(bookings); i++ {
if err := <-errCh; err != nil {
return false, wf, execs, bookings, err
}
}