From ddf19ffbdc4052a61ccffa6439438b0e46c6939d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=87=E3=83=B4=E3=81=81=E3=82=93=E3=81=99?= Date: Fri, 17 Mar 2023 21:13:25 +0530 Subject: [PATCH] fix today's report not showing up on console --- .../client/views/admin/moderation/ModerationConsoleTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/meteor/client/views/admin/moderation/ModerationConsoleTable.tsx b/apps/meteor/client/views/admin/moderation/ModerationConsoleTable.tsx index 3030537e0afbc..baa3e0a256a27 100644 --- a/apps/meteor/client/views/admin/moderation/ModerationConsoleTable.tsx +++ b/apps/meteor/client/views/admin/moderation/ModerationConsoleTable.tsx @@ -42,8 +42,8 @@ const ModerationConsoleTable: FC<{ reload: MutableRefObject<() => void>; onReloa sort: JSON.stringify({ [sortBy]: sortDirection === 'asc' ? 1 : -1 }), count: itemsPerPage, offset: current, - ...(end && { latest: end }), - ...(start && { oldest: start }), + ...(end && { latest: `${new Date(end).toISOString().slice(0, 10)}T23:59:59.999Z` }), + ...(start && { oldest: `${new Date(start).toISOString().slice(0, 10)}T23:59:59.999Z` }), }), [current, end, itemsPerPage, sortBy, sortDirection, start, text], ),