Fix report date rendering
This commit is contained in:
+1
-1
@@ -215,7 +215,7 @@ async function listReports(query) {
|
||||
const total = countResult.rows[0].count;
|
||||
params.push(pageSize, (page - 1) * pageSize);
|
||||
const result = await pool.query(`
|
||||
SELECT r.id, r.report_date, r.title, r.introduction, r.item_count,
|
||||
SELECT r.id, r.report_date::text AS report_date, r.title, r.introduction, r.item_count,
|
||||
r.status, r.email_status, r.created_at,
|
||||
COALESCE(json_agg(json_build_object(
|
||||
'id', a.id, 'title', a.title, 'translated_title', a.translated_title,
|
||||
|
||||
Reference in New Issue
Block a user