From cccb54d38fe971ec4205af4fe1f5e372eb37d655 Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 22 Jan 2025 09:59:28 +0100 Subject: [PATCH] light modification --- models/workflow_execution/workflow_scheduler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index b2b83ec..e07bd66 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -51,7 +51,7 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest) if request.Caller == nil && request.Caller.URLS == nil && request.Caller.URLS[tools.BOOKING] == nil || request.Caller.URLS[tools.BOOKING][tools.POSTCHECK] == "" { return false, nil, []*WorkflowExecutions{}, errors.New("no caller defined") } - access := workflow.NewAccessor(nil) + access := workflow.NewAccessor(request) res, code, err := access.LoadOne(wfID) if code != 200 { return false, nil, []*WorkflowExecutions{}, errors.New("could not load the workflow with id: " + err.Error())