fix: Issue of set transaction Password

This commit is contained in:
2026-01-20 12:04:18 +05:30
parent 7e852763ff
commit b1cf06ef08

View File

@@ -244,7 +244,7 @@ async function setTransPassword(req, res) {
const user = await authService.findUserByCustomerNo(customerNo); const user = await authService.findUserByCustomerNo(customerNo);
if (!user) return res.status(404).json({ error: 'USER_NOT_FOUND' }); if (!user) return res.status(404).json({ error: 'USER_NOT_FOUND' });
const { transaction_password } = req.body; const { transaction_password } = req.body;
authService.setTransPassword(customerNo, transaction_password); authService.setTransactionPassword(customerNo, transaction_password);
return res.json({ message: 'Transaction Password set' }); return res.json({ message: 'Transaction Password set' });
} catch (error) { } catch (error) {
logger.error(error); logger.error(error);