From 9e684ce48099c994017a0ed635c86c4be1123579 Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 7 Sep 2026 08:34:43 +0100 Subject: [PATCH] Removes the check causing issues --- backend/services/dailyReport/dailyReport.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/backend/services/dailyReport/dailyReport.js b/backend/services/dailyReport/dailyReport.js index ff59913..0bca4d8 100644 --- a/backend/services/dailyReport/dailyReport.js +++ b/backend/services/dailyReport/dailyReport.js @@ -14,18 +14,6 @@ module.exports = async (db) => { const end = new Date(); end.setHours(10, 59, 59, 999); - // Check to see if a report exists already and if one does exit out - const reportExists = await db.collection('overviewReport').findOne({ - date: { - $gte: Long.fromNumber(start.getTime()), - $lte: Long.fromNumber(end.getTime()) - } - }); - - if (reportExists) { - return; - } - // Get people const people = await db .collection('person')