repair: notification error log
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user