diff --git a/src/pages/jobs/[uuid]/index.astro b/src/pages/jobs/[uuid]/index.astro index 8f7131f..8d28475 100644 --- a/src/pages/jobs/[uuid]/index.astro +++ b/src/pages/jobs/[uuid]/index.astro @@ -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!) } --- diff --git a/src/pages/jobs/[uuid]/logs.ts b/src/pages/jobs/[uuid]/logs.ts index c5d006a..eeeb1ad 100644 --- a/src/pages/jobs/[uuid]/logs.ts +++ b/src/pages/jobs/[uuid]/logs.ts @@ -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')