From a6daccc7c50fb925ecd16dfb7b518d81a9364f1e Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Tue, 23 Sep 2025 17:57:46 +0200 Subject: [PATCH] fix: include groups, sections and questions --- src/api/ai-workflow/ai-workflow.service.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/api/ai-workflow/ai-workflow.service.ts b/src/api/ai-workflow/ai-workflow.service.ts index 165e7bb..9c524df 100644 --- a/src/api/ai-workflow/ai-workflow.service.ts +++ b/src/api/ai-workflow/ai-workflow.service.ts @@ -258,7 +258,19 @@ export class AiWorkflowService { provider: true, }, }, - scorecard: true, + scorecard: { + include: { + scorecardGroups: { + include: { + sections: { + include: { + questions: true, + }, + }, + }, + }, + }, + }, }, }); if (!workflow) {