corrected an use of the original http caller instead of the deep copy

This commit is contained in:
pb 2025-05-27 18:07:00 +02:00
parent 690d60f9d6
commit 6ab6383144

View File

@ -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 {