repair: service & controller notif and notif user

This commit is contained in:
2026-01-07 09:34:59 +07:00
parent f3abaeac39
commit aa7cd2fbaa
5 changed files with 168 additions and 164 deletions

View File

@@ -75,16 +75,13 @@ class NotificationErrorController {
}
static async resend(req, res) {
try {
const { id } = req.params;
const result =
await NotificationErrorService.resendNotification(
id,
);
res.status(200).json(result);
} catch (error) {
return error;
}
const { id } = req.params;
const results = await NotificationErrorService.resendNotification(id);
const response = await setResponse(
results,
"Notification Error resend successfully"
);
res.status(response.statusCode).json(response);
}
}