wisdom #64
@@ -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,7 +25,7 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user