add: reader in notification detail & update notification

This commit is contained in:
2025-12-18 11:39:24 +07:00
parent f2c8c3818d
commit 1aa7b1bc08
5 changed files with 88 additions and 6 deletions

View File

@@ -52,17 +52,17 @@ class NotificationErrorUserController {
value.userId = req.user.user_id
const results = await NotificationErrorUserService.updateNotificationErrorUser(id, value);
const response = await setResponse(results, 'Contact updated successfully')
const response = await setResponse(results, 'Notification Error User updated successfully')
res.status(response.statusCode).json(response);
}
// Soft delete contact
// Soft delete Notification Error User
static async delete(req, res) {
const { id } = req.params;
const results = await NotificationErrorUserService.deleteNotificationErrorUser(id, req.user.user_id);
const response = await setResponse(results, 'Contact deleted successfully')
const response = await setResponse(results, 'Notification Error User deleted successfully')
res.status(response.statusCode).json(response);
}