From a7e9ca1c35a6b93f4be7d0b66e4819a6414c06fc Mon Sep 17 00:00:00 2001 From: Janpeter Visser <30029041+madhura68@users.noreply.github.com> Date: Thu, 7 May 2026 19:24:21 +0200 Subject: [PATCH] fix(PBI-59): drop invalid Sprint.code select in fetchJobsPageData (#151) Sprint heeft geen `code` veld; de query crashte met PrismaClientValidationError zodra /jobs werd geopend. sprintCode blijft in JobWithRelations als string|null voor UI-compat (JobCard.titleText fallback) maar is nu altijd null. Co-authored-by: Claude Opus 4.7 (1M context) --- actions/jobs-page.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/jobs-page.ts b/actions/jobs-page.ts index ae58804..ebf811d 100644 --- a/actions/jobs-page.ts +++ b/actions/jobs-page.ts @@ -35,7 +35,7 @@ const JOB_INCLUDE = { task: { select: { code: true, title: true } }, idea: { select: { code: true, title: true } }, product: { select: { name: true } }, - sprint_run: { include: { sprint: { select: { sprint_goal: true, code: true } } } }, + sprint_run: { include: { sprint: { select: { sprint_goal: true } } } }, } as const function mapJob(j: { @@ -59,7 +59,7 @@ function mapJob(j: { task: { code: string | null; title: string } | null idea: { code: string | null; title: string } | null product: { name: string } - sprint_run: { sprint: { sprint_goal: string; code: string | null } } | null + sprint_run: { sprint: { sprint_goal: string } } | null }): JobWithRelations { return { id: j.id, @@ -70,7 +70,7 @@ function mapJob(j: { ideaCode: j.idea?.code ?? null, ideaTitle: j.idea?.title ?? null, sprintGoal: j.sprint_run?.sprint.sprint_goal ?? null, - sprintCode: j.sprint_run?.sprint.code ?? null, + sprintCode: null, productName: j.product.name, modelId: j.model_id, inputTokens: j.input_tokens,