Skip to content

Commit

Permalink
Merge pull request #611 from HDRUK/fix/SUPP-749
Browse files Browse the repository at this point in the history
Fix for issue were user is unable to assign a workflow
  • Loading branch information
pawilliams-hdr authored Dec 8, 2021
2 parents f8144c5 + d4ce9e4 commit 8d41bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/workflow/workflow.repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 8d41bf7

Please sign in to comment.