From 5df2d6c07e20ed7550178686fd8d33231ae799a5 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Sivakumar Date: Sat, 18 Jul 2026 23:41:22 +0530 Subject: [PATCH] fix(admin-verification): send request body on Approve action from queue list Every action branch (reject, request-documents, request-revision, notes) set common.body to a JSON payload, but the isApprove branch never did, leaving body: undefined. axum's Json extractor rejects a body-less POST before approve_verification even runs, so clicking Approve in the queue-list modal silently failed (the error banner renders at the top of the page, easy to miss behind the open modal). Co-Authored-By: Claude Sonnet 5 --- src/routes/admin/verification/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/admin/verification/index.tsx b/src/routes/admin/verification/index.tsx index 225f34c..0827601 100644 --- a/src/routes/admin/verification/index.tsx +++ b/src/routes/admin/verification/index.tsx @@ -502,6 +502,7 @@ export default function VerificationManagementPage() { let endpoint = ''; if (isApprove) { endpoint = `/api/admin/verifications/${current.id}/approve`; + common.body = JSON.stringify({ notes: requestNote() || undefined }); } else if (isReject) { endpoint = `/api/admin/verifications/${current.id}/reject`; common.body = JSON.stringify({ reason: requestNote() || 'Rejected by verifier' });