repair: resend chat all user & by user

This commit is contained in:
2026-01-04 19:20:43 +07:00
parent bedc948a74
commit 3eb403c557
7 changed files with 132 additions and 19 deletions

View File

@@ -71,6 +71,24 @@ class NotificationErrorController {
res.status(response.statusCode).json(response);
}
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);
} catch (error) {
const response = setResponse(null, error.message, error.statusCode || 500);
res.status(response.statusCode).json(response);
}
}
}
module.exports = NotificationErrorController;