fix: validation in sparepart and device

This commit is contained in:
2026-06-26 16:10:54 +07:00
parent 5112090a35
commit e5a77f2f93
5 changed files with 70 additions and 97 deletions

View File

@@ -14,8 +14,8 @@ router.post('/restart-wa', async (req, res) => {
router.post('/reminder-monthly/:id', async (req, res) => {
try {
const { id } = req.params;
const {reminder_at_monthly} = req.body
const result = await NotifikasiWaService.onMonthlyReminder(id, reminder_at_monthly);
const {reminder_at_monthly, period} = req.body
const result = await NotifikasiWaService.onMonthlyReminder(id, reminder_at_monthly, period);
return res.status(200).json(result);
} catch (error) {
return res.status(500).json(error);