feat: add message template for e-mandate

This commit is contained in:
2025-09-25 12:07:02 +05:30
parent ffbbea27d7
commit edbeca3fd2
3 changed files with 10 additions and 1 deletions

View File

@@ -82,6 +82,10 @@ async function SendOtp(req, res) {
case 'RIGHT_UPDATE':
message = templates.RIGHT_UPDATE;
break;
case 'EMandate':
otp = generateOTP(6);
message = templates.EMandate(otp);
break;
default:
return res.status(400).json({ error: 'Invalid OTP type' });
}