fix: some lint errors

main
Antonio De Lucreziis 10 months ago
parent ad49ce171d
commit 8d16c94ae8

@ -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 Layout from '@layouts/Layout.astro'
import { JobLogs } from '@client/JobLogs' import { JobLogs } from '@client/JobLogs'
@ -21,7 +21,7 @@ if (!job) {
let logsContent let logsContent
if (job.status === 'completed') { 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 { debug } from '@/logger'
import type { APIRoute } from 'astro' 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 rawLogs = await getJobLogs(uuid!)
const format = url.searchParams.get('format') const format = url.searchParams.get('format')

Loading…
Cancel
Save