repair: service & controller notif and notif user
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user