light modification
This commit is contained in:
		@@ -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] == "" {
 | 
						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")
 | 
							return false, nil, []*WorkflowExecutions{}, errors.New("no caller defined")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	access := workflow.NewAccessor(nil)
 | 
						access := workflow.NewAccessor(request)
 | 
				
			||||||
	res, code, err := access.LoadOne(wfID)
 | 
						res, code, err := access.LoadOne(wfID)
 | 
				
			||||||
	if code != 200 {
 | 
						if code != 200 {
 | 
				
			||||||
		return false, nil, []*WorkflowExecutions{}, errors.New("could not load the workflow with id: " + err.Error())
 | 
							return false, nil, []*WorkflowExecutions{}, errors.New("could not load the workflow with id: " + err.Error())
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user