add: reminder whatsapp sparepart monthly
This commit is contained in:
@@ -11,4 +11,14 @@ router.post('/restart-wa', async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
router.post('/reminder-sparepart/:id', async (req, res) => {
|
||||
try {
|
||||
const { id } = req.params;
|
||||
const result = await NotifikasiWaService.onMonthlySparepartReminder(id);
|
||||
return res.status(200).json(result);
|
||||
} catch (error) {
|
||||
return res.status(500).json(error);
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user