fixed typo in rtgs.route.js

This commit is contained in:
2025-08-20 12:14:40 +05:30
parent 52225828d0
commit 470d8e15f6

View File

@@ -32,7 +32,7 @@ const rtgsRoute = async (req, res) => {
return res.json({ message: 'SUCCESS', utr });
} else if (result.status.includes('INSUFFICIENT FUNDS')) {
return res.status(422).json({ error: 'INSUFFICIENT_FUNDS' });
} else if (result.status.include('INVALID CHECK DIGIT')) {
} else if (result.status.includes('INVALID CHECK DIGIT')) {
return res.status(400).json({ error: 'INVALID_ACCOUNT_NUMBER' });
} else {
return res.status(400).json({ error: 'PROBLEM_TRANSFERRING_FUNDS' });