Stop ABDM auto-sync polling on reconcile 404

This commit is contained in:
DevSoftTech Server 2026-07-27 14:28:42 +05:30
parent 49698a72d7
commit 8086bfbeb6

View File

@ -1476,9 +1476,10 @@ class Patient extends BaseController
return $this->response->setJSON([
'ok' => 1,
'phase' => 'REQUESTED',
'poll_again' => 1,
// Avoid repeated not-found polling loops against bridge.
'poll_again' => 0,
'request_id' => $flowRefId,
'message' => 'Consent request is still being indexed. Please wait and retry automatically.',
'message' => 'Consent status not found on bridge for this request yet. Please retry sync after 1-2 minutes.',
'data' => [
'consent_request' => $consentResult,
'consent_reconcile' => $reconcileResult,