repair: body message wa in notif
This commit is contained in:
@@ -77,19 +77,13 @@ class NotificationErrorController {
|
||||
static async resend(req, res) {
|
||||
try {
|
||||
const { id } = req.params;
|
||||
|
||||
const results = await NotificationErrorService.resendNotification(id);
|
||||
|
||||
const response = await setResponse(results, results.message);
|
||||
|
||||
res.status(response.statusCode).json(response);
|
||||
const result =
|
||||
await NotificationErrorService.resendNotification(
|
||||
id,
|
||||
);
|
||||
res.status(200).json(result);
|
||||
} catch (error) {
|
||||
const response = setResponse(
|
||||
null,
|
||||
error.message,
|
||||
error.statusCode || 500
|
||||
);
|
||||
res.status(response.statusCode).json(response);
|
||||
return error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user