Fix lints
This commit is contained in:
parent
cfb5564830
commit
6ab52c1830
@ -12,7 +12,7 @@ export async function handle({ event, resolve }) {
|
|||||||
? { requestId: reqIdFromRequest, fromRequest: true }
|
? { requestId: reqIdFromRequest, fromRequest: true }
|
||||||
: { requestId: uuidv7(), fromRequest: false };
|
: { requestId: uuidv7(), fromRequest: false };
|
||||||
|
|
||||||
var context = {
|
const context = {
|
||||||
requestId,
|
requestId,
|
||||||
route: event.route.id,
|
route: event.route.id,
|
||||||
method: event.request.method,
|
method: event.request.method,
|
||||||
|
@ -13,7 +13,7 @@ const mkdirIfNotExists = (path: string) => {
|
|||||||
|
|
||||||
export const actions = {
|
export const actions = {
|
||||||
default: async ({ request, locals }: RequestEvent) => {
|
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 data = await request.formData();
|
||||||
|
|
||||||
const formFiles = data.getAll('files');
|
const formFiles = data.getAll('files');
|
||||||
|
Reference in New Issue
Block a user