add: resend chat wa notif error user

This commit is contained in:
2025-12-31 15:11:34 +07:00
parent a704eb3235
commit 25ba80ab7e
5 changed files with 141 additions and 24 deletions

View File

@@ -66,6 +66,24 @@ class NotificationErrorUserController {
res.status(response.statusCode).json(response);
}
static async resend(req, res) {
try {
const { id } = req.params;
const results = await NotificationErrorUserService.resendNotification(id);
const response = await setResponse(
results.data,
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 = NotificationErrorUserController;