From d4ce9e487678da90aa0997b237fd9b0b4293475f Mon Sep 17 00:00:00 2001 From: Paul McCafferty <> Date: Tue, 7 Dec 2021 12:58:07 +0000 Subject: [PATCH] Fix for issue were user is unable to assign a workflow --- src/resources/workflow/workflow.repository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/workflow/workflow.repository.js b/src/resources/workflow/workflow.repository.js index 508a34a1..0c81be16 100644 --- a/src/resources/workflow/workflow.repository.js +++ b/src/resources/workflow/workflow.repository.js @@ -54,7 +54,7 @@ export default class WorkflowRepository extends Repository { async assignWorkflowToApplication(accessRecord, workflowId) { // Retrieve workflow using ID from database - const workflow = await WorkflowRepository.getWorkflowById(workflowId, { lean: false }); + const workflow = await this.getWorkflowById(workflowId, { lean: false }); if (!workflow) { throw new Error('Workflow could not be found'); }