Update index.ts

This commit is contained in:
2025-10-27 14:10:12 +08:00
parent 013c85cfc7
commit 18236bf933
+3 -1
View File
@@ -198,8 +198,10 @@ export const app = new Elysia()
}),
})
.post("/delete", async ({ body }) => {
.post("/delete", async ({ body, headers }) => {
const { id } = body
checkHeaderKey(headers)
const metadata = await getMetadata()
const photoIndex = metadata.findIndex((p) => p.id === id)