[?] debug
This commit is contained in:
+2
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user