fix: reminder monthly, and cron in reminder reminder monthly
This commit is contained in:
@@ -11,10 +11,11 @@ router.post('/restart-wa', async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
router.post('/reminder-sparepart/:id', async (req, res) => {
|
||||
router.post('/reminder-monthly/:id', async (req, res) => {
|
||||
try {
|
||||
const { id } = req.params;
|
||||
const result = await NotifikasiWaService.onMonthlyReminder(id);
|
||||
const {reminder_at_monthly} = req.body
|
||||
const result = await NotifikasiWaService.onMonthlyReminder(id, reminder_at_monthly);
|
||||
return res.status(200).json(result);
|
||||
} catch (error) {
|
||||
return res.status(500).json(error);
|
||||
|
||||
Reference in New Issue
Block a user