From b9c9d35f7449ee39b0854424876ec85f00f5738c Mon Sep 17 00:00:00 2001 From: asif Date: Sat, 8 Nov 2025 20:27:37 +0530 Subject: [PATCH] fix: added await in calling set tpin --- src/controllers/auth.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/auth.controller.js b/src/controllers/auth.controller.js index 7299bba..8e1f73e 100644 --- a/src/controllers/auth.controller.js +++ b/src/controllers/auth.controller.js @@ -171,7 +171,7 @@ async function setTpin(req, res) { const { tpin } = req.body; if (!/^\d{6}$/.test(tpin)) return res.status(400).json({ error: 'INVALID_TPIN_FORMAT' }); - authService.setTpin(customerNo, tpin); + await authService.setTpin(customerNo, tpin); return res.json({ message: 'TPIN_SET' }); } catch (error) { logger.error(error);