@ -1,5 +1,5 @@
---
import { getJob, getJobLogs, OnJobLog, type QueuedJob } from '@/jobs'
import { getJob, getJobLogs, OnJobLog } from '@/jobs'
import Layout from '@layouts/Layout.astro'
import { JobLogs } from '@client/JobLogs'
@ -21,7 +21,7 @@ if (!job) {
let logsContent
if (job.status === 'completed') {
logsContent = await getJobLogs(uuid)
logsContent = await getJobLogs(uuid!)
}
@ -3,7 +3,7 @@ import { JsonResponse, JsonStreamResponse, createQueryUrl } from '@/lib/utils'
import { debug } from '@/logger'
import type { APIRoute } from 'astro'
export const GET: APIRoute = async ({ request, params: { uuid }, url, redirect }) => {
export const GET: APIRoute = async ({ params: { uuid }, url, redirect }) => {
const rawLogs = await getJobLogs(uuid!)
const format = url.searchParams.get('format')