diff --git a/src/api/ai-workflow/ai-workflow.service.ts b/src/api/ai-workflow/ai-workflow.service.ts index 6f32e89..9242f3c 100644 --- a/src/api/ai-workflow/ai-workflow.service.ts +++ b/src/api/ai-workflow/ai-workflow.service.ts @@ -485,6 +485,28 @@ export class AiWorkflowService { }, include: { submission: true, + workflow: { + include: { + llm: { + include: { + provider: true, + }, + }, + scorecard: { + include: { + scorecardGroups: { + include: { + sections: { + include: { + questions: true, + }, + }, + }, + }, + }, + }, + }, + }, }, }); @@ -547,7 +569,7 @@ export class AiWorkflowService { } } - return runs.map((r) => ({ ...r, submission: undefined, test: true })); + return runs.map((r) => ({ ...r, submission: undefined })); } async updateWorkflowRun(