Update references to Job needs

This commit is contained in:
Josh Gross
2022-12-06 11:33:04 -05:00
parent e1ab3ce031
commit 4960004373
@@ -10,8 +10,8 @@ export function getNeedsContext(workflowContext: WorkflowContext): data.Dictiona
}
for (const jobID of workflowContext.job.needs) {
const job = workflowContext.template?.jobs.find(job => job.id.value === jobID);
d.add(jobID, needsJobContext(job));
const job = workflowContext.template?.jobs.find(job => job.id.value === jobID.value);
d.add(jobID.value, needsJobContext(job));
}
return d;