From f026e30c6aa67906528c7a20ea51f1d020f649e2 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 30 Apr 2025 12:59:57 +0200 Subject: [PATCH] printing in schedules --- models/workflow_execution/workflow_scheduler.go | 6 ++++++ 1 file changed, 6 insertions(+) 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"))