From 451f37e76344b55ec2cf91a7b116e6592fa1ea98 Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 13 Jul 2026 08:47:48 +0100 Subject: [PATCH] Update dailyReport.js --- backend/services/dailyReport/dailyReport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/dailyReport/dailyReport.js b/backend/services/dailyReport/dailyReport.js index 9a43375..0fe28f4 100644 --- a/backend/services/dailyReport/dailyReport.js +++ b/backend/services/dailyReport/dailyReport.js @@ -19,8 +19,8 @@ module.exports = async (db) => { // Check to see if a report exists already and if one does exit out const reportExists = await db.collection('overviewReport').findOne({ date: { - $gte: start, - $lte: end + $gte: now.setHours(0, 0, 0, 0).getTime(), + $lte: now.setHours(23, 59, 59, 999).getTime() } });