From 379566819ad7607d4941b4bbeb5d8d6f900a6aaf Mon Sep 17 00:00:00 2001 From: Soxasora Date: Mon, 23 Dec 2024 16:13:56 +0100 Subject: [PATCH] 2 days interval workaround for different timezones; restore svg --- api/resolvers/notifications.js | 4 ++-- svgs/lightning.svg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/resolvers/notifications.js b/api/resolvers/notifications.js index 2c2f8130b..3fa2bae8e 100644 --- a/api/resolvers/notifications.js +++ b/api/resolvers/notifications.js @@ -368,11 +368,11 @@ export default { t AS "sortTime", NULL as "earnedSats", 'SatSummary' AS type FROM user_stats_days WHERE id = $1 - AND t >= date_trunc('day', CURRENT_DATE - INTERVAL '1 day') + AND t >= date_trunc('day', CURRENT_DATE - INTERVAL '2 day') AND t <= $2 GROUP BY t ORDER BY "sortTime" DESC - LIMIT ${LIMIT})` + LIMIT 1)` ) } diff --git a/svgs/lightning.svg b/svgs/lightning.svg index b2bfa8af0..78af8e0af 100644 --- a/svgs/lightning.svg +++ b/svgs/lightning.svg @@ -1,3 +1,3 @@ - +