From 402c1c0705d9527207bfdde19cd14c7e1a7bf740 Mon Sep 17 00:00:00 2001 From: mhmmdafif Date: Mon, 5 Jan 2026 11:25:25 +0700 Subject: [PATCH] add: is_read & updated_at in notif error user at notif error --- db/notification_error.db.js | 4 +++- db/notification_error_user.db.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/db/notification_error.db.js b/db/notification_error.db.js index 990f05b..9dd53e4 100644 --- a/db/notification_error.db.js +++ b/db/notification_error.db.js @@ -165,7 +165,9 @@ const getUsersNotificationErrorDb = async (id) => { a.notification_error_user_id, a.contact_phone, a.contact_name, - c.is_active + c.is_active, + c.is_read, + c.updated_at FROM notification_error_user a diff --git a/db/notification_error_user.db.js b/db/notification_error_user.db.js index 11cf408..8312a4f 100644 --- a/db/notification_error_user.db.js +++ b/db/notification_error_user.db.js @@ -75,7 +75,7 @@ const getNotificationErrorByIdDb = async (notification_error_id) => { const queryText = ` SELECT a.*, - b. is_active as contact_is_active, + b.is_active as contact_is_active, c.is_read FROM notification_error_user a