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) {