The following changes were made by the replace_file_content tool to: /root/aadharbot/aadhaar_service.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -290,7 +290,7 @@ console.log("PDF Verify Response:", data); let pdfBase64Data = null; - if (data.status === 'Success') { + if (data.status === 'Success' || (data.status && typeof data.status === 'string' && data.status.toLowerCase() === 'success')) { if (data.data && data.data.aadhaarPdf) pdfBase64Data = data.data.aadhaarPdf; else if (data.pdfBase64) pdfBase64Data = data.pdfBase64; else if (data.uid) pdfBase64Data = data.uid; [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.