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

@@ -165,11 +165,13 @@ const getUsersNotificationErrorDb = async (id) => {
a.notification_error_user_id,
a.contact_phone,
a.contact_name,
a.is_send
c.is_active
FROM notification_error_user a
LEFT JOIN notification_error b ON a.notification_error_id = b.notification_error_id
LEFT JOIN contact c ON a.contact_phone = c.contact_phone
WHERE a.notification_error_id = $1
AND a.deleted_at IS NULL