fix(admin-verification): send request body on Approve action from queue list
All checks were successful
build-and-release / build (push) Successful in 1m21s

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<ActionPayload> 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 <noreply@anthropic.com>
This commit is contained in:
Ashwin Kumar Sivakumar 2026-07-18 23:41:22 +05:30
parent fe9c994b74
commit 5df2d6c07e

View file

@ -502,6 +502,7 @@ export default function VerificationManagementPage() {
let endpoint = ''; let endpoint = '';
if (isApprove) { if (isApprove) {
endpoint = `/api/admin/verifications/${current.id}/approve`; endpoint = `/api/admin/verifications/${current.id}/approve`;
common.body = JSON.stringify({ notes: requestNote() || undefined });
} else if (isReject) { } else if (isReject) {
endpoint = `/api/admin/verifications/${current.id}/reject`; endpoint = `/api/admin/verifications/${current.id}/reject`;
common.body = JSON.stringify({ reason: requestNote() || 'Rejected by verifier' }); common.body = JSON.stringify({ reason: requestNote() || 'Rejected by verifier' });