fix(admin-verification): send request body on Approve action from queue list
All checks were successful
build-and-release / build (push) Successful in 1m21s
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:
parent
fe9c994b74
commit
5df2d6c07e
1 changed files with 1 additions and 0 deletions
|
|
@ -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' });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue