replace created at in notif error

This commit is contained in:
2026-01-09 14:30:07 +07:00
parent 8e0dc4bb88
commit 436ea1cf89

View File

@@ -95,7 +95,8 @@ const getAllNotificationDb = async (searchParams = {}) => {
], ],
queryParams queryParams
); );
if (whereParamAnd) queryParams = whereParamAnd;
queryParams = whereParamAnd ? whereParamAnd : queryParams;
const queryText = ` const queryText = `
SELECT SELECT
@@ -108,12 +109,12 @@ const getAllNotificationDb = async (searchParams = {}) => {
a.is_delivered, a.is_delivered,
a.is_read, a.is_read,
a.is_active, a.is_active,
a.created_at,
b.error_code, b.error_code,
b.error_code_name, b.error_code_name,
b.error_code_color, b.error_code_color,
b.path_icon, b.path_icon,
b.created_at,
c.solution_name, c.solution_name,
c.type_solution, c.type_solution,