From 6ab6383144e56f31516537e4bbbe38f811ac62f0 Mon Sep 17 00:00:00 2001 From: pb Date: Tue, 27 May 2025 18:07:00 +0200 Subject: [PATCH] corrected an use of the original http caller instead of the deep copy --- models/workflow_execution/workflow_scheduler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index e4be90e..23e87d7 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -106,11 +106,11 @@ func getBooking( b *booking.Booking, request *tools.APIRequest, wf *workflow.Wor } m.Unlock() - meth := request.Caller.URLS[tools.BOOKING][tools.GET] + meth := c.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")) meth = strings.ReplaceAll(meth, ":end_date", b.ExpectedEndDate.Format("2006-01-02T15:04:05")) - request.Caller.URLS[tools.BOOKING][tools.GET] = meth + c.URLS[tools.BOOKING][tools.GET] = meth _, err = (&peer.Peer{}).LaunchPeerExecution(b.DestPeerID, b.ResourceID, tools.BOOKING, tools.GET, nil, &c) if err != nil {