From 5268838975fcea560be14901f891ed406e404a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emrik=20=C3=96stling?= Date: Mon, 1 Dec 2025 22:31:10 +0100 Subject: [PATCH] chore: fix format --- src/pages/upload.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/upload.tsx b/src/pages/upload.tsx index 6e2b2dd..0c00009 100644 --- a/src/pages/upload.tsx +++ b/src/pages/upload.tsx @@ -25,11 +25,11 @@ export const upload = new Elysia().use(userService).post( if (body?.file) { if (Array.isArray(body.file)) { for (const file of body.file) { - const santizedFileName = sanitize(file.name) + const santizedFileName = sanitize(file.name); await Bun.write(`${userUploadsDir}${santizedFileName}`, file); } } else { - const santizedFileName = sanitize(body.file["name"]) + const santizedFileName = sanitize(body.file["name"]); await Bun.write(`${userUploadsDir}${santizedFileName}`, body.file); } }