diff --git a/src/hooks.server.ts b/src/hooks.server.ts index d00e364..cf156c0 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -12,7 +12,7 @@ export async function handle({ event, resolve }) { ? { requestId: reqIdFromRequest, fromRequest: true } : { requestId: uuidv7(), fromRequest: false }; - var context = { + const context = { requestId, route: event.route.id, method: event.request.method, diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index ec4886c..54eea75 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -13,7 +13,7 @@ const mkdirIfNotExists = (path: string) => { export const actions = { default: async ({ request, locals }: RequestEvent) => { - var context: any = { requestId: locals.requestId }; + let context: { [key: string]: string | string[] } = { requestId: locals.requestId }; const data = await request.formData(); const formFiles = data.getAll('files');