add: reminder whatsapp sparepart monthly

This commit is contained in:
Muhammad Afif
2026-06-05 09:17:45 +07:00
parent 3d53bf4702
commit 40de826da9
6 changed files with 249 additions and 13 deletions

View File

@@ -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;