From 13ce1705faa178dc7d64247bbba700e29f802955 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 8 Jul 2026 12:56:08 +0700 Subject: [PATCH] fix: reminder route --- routes/notifikasi-wa.route.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/notifikasi-wa.route.js b/routes/notifikasi-wa.route.js index 940e37f..673c30e 100644 --- a/routes/notifikasi-wa.route.js +++ b/routes/notifikasi-wa.route.js @@ -14,10 +14,10 @@ router.post('/restart-wa', async (req, res) => { } }); -router.post('/reminder-monthly/:id',verifyToken, verifyAccess, async (req, res) => { +router.post('/reminder-monthly/:id', verifyToken.verifyAccessToken, verifyAccess(), async (req, res) => { try { const { id } = req.params; - const {reminder_at_monthly} = req.body + const { reminder_at_monthly } = req.body; const result = await NotifikasiWaService.onMonthlyReminder(id, reminder_at_monthly); return res.status(200).json(result); } catch (error) { @@ -25,10 +25,10 @@ router.post('/reminder-monthly/:id',verifyToken, verifyAccess, async (req, res) } }); -router.post('/reminder-custom/:id',verifyToken, verifyAccess, async (req, res) => { +router.post('/reminder-custom/:id', verifyToken.verifyAccessToken, verifyAccess(), async (req, res) => { try { const { id } = req.params; - const {start_date, end_date} = req.body; + const { start_date, end_date } = req.body; const result = await NotifikasiWaService.onCustomReminder(id, start_date, end_date); return res.status(200).json(result); } catch (error) {