refactor: Correctly iterate over file parts array in delete operation

This commit is contained in:
2025-10-16 13:44:57 +02:00
parent 56726adaad
commit df677a345a

View File

@@ -50,7 +50,7 @@ export async function POST(request: Request) {
); );
// 3. Delete each message from Discord sequentially to avoid rate limits // 3. Delete each message from Discord sequentially to avoid rate limits
for (const part of partsRows[0] as FilePart[]) { for (const part of partsRows as FilePart[]) {
if (!part.discord_message_id) continue; if (!part.discord_message_id) continue;
try { try {