feat: add verify_result+pushed_at to JobState, VerifyResultApi type, SSE payload
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ea67344829
commit
daa1c77498
2 changed files with 13 additions and 4 deletions
|
|
@ -46,6 +46,7 @@ type JobPayload = {
|
|||
status: string
|
||||
branch?: string
|
||||
pushed_at?: string
|
||||
verify_result?: string
|
||||
summary?: string
|
||||
error?: string
|
||||
}
|
||||
|
|
@ -259,7 +260,7 @@ async function prisma_jobs_findActive(userId: string, productId: string) {
|
|||
],
|
||||
},
|
||||
select: {
|
||||
id: true, task_id: true, status: true, branch: true, pushed_at: true, summary: true, error: true,
|
||||
id: true, task_id: true, status: true, branch: true, pushed_at: true, verify_result: true, summary: true, error: true,
|
||||
},
|
||||
orderBy: { created_at: 'asc' },
|
||||
})
|
||||
|
|
@ -269,6 +270,7 @@ async function prisma_jobs_findActive(userId: string, productId: string) {
|
|||
status: jobStatusToApi(j.status),
|
||||
branch: j.branch ?? undefined,
|
||||
pushed_at: j.pushed_at?.toISOString() ?? undefined,
|
||||
verify_result: j.verify_result?.toLowerCase() as import('@/stores/solo-store').VerifyResultApi | undefined,
|
||||
summary: j.summary ?? undefined,
|
||||
error: j.error ?? undefined,
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue