diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index 03bbe01..2effc6a 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -1,6 +1,7 @@ package workflow_execution import ( + "encoding/json" "errors" "fmt" "strings" @@ -78,6 +79,11 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest) for _, exec := range execs { bookings = append(bookings, exec.Book(ws.UUID, wfID, priceds)...) for _, b := range bookings { + // ------------ DELETE + fmt.Println("Booking :") + book, _ := json.Marshal(b) + fmt.Println(string(book)) + // ---------------- meth := request.Caller.URLS[tools.BOOKING][tools.GET] meth = strings.ReplaceAll(meth, ":id", b.ResourceID) meth = strings.ReplaceAll(meth, ":start_date", b.ExpectedStartDate.Format("2006-01-02T15:04:05"))