From cb705f6c090b6d6bb93f207525ae84c9c53fcc98 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Mon, 8 Dec 2025 17:08:20 +0900 Subject: [PATCH] [?] debug --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index fbee222..7b77b61 100644 --- a/src/index.ts +++ b/src/index.ts @@ -211,7 +211,8 @@ export const app = new Elysia() .post("/delete", async ({ body, headers }) => { const { id } = body checkHeaderKey(headers) - log(`[+] Received delete request for photo ${id}`) + log(`[+] Received delete request for photo ${id} (type: ${typeof id})`) + if (typeof id !== "string" || id.trim() === "") done(400, "Invalid photo ID") const metadata = await getMetadata()