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,