repair: notification error log

This commit is contained in:
2025-11-25 14:56:49 +07:00
parent 78a813e9ec
commit 662cf6f5f3
4 changed files with 31 additions and 2 deletions

View File

@@ -31,6 +31,21 @@ class NotificationErrorLogController {
}
}
// Get notification error logs by notification_error_id
static async getByNotificationErrorId(req, res) {
try {
const { id } = req.params;
const results = await NotificationErrorLogService.getNotificationErrorLogByNotificationErrorId(id);
const response = await setResponse(results, 'Notification Error Logs found')
res.status(response.statusCode).json(response);
} catch (error) {
const response = await setResponse(error, error.message, error.statusCode || 500);
res.status(response.statusCode).json(response);
}
}
// Create notification error log
static async create(req, res) {
try {