From dde9cd7eae70ce2b7eeef2eb178c99a17213106c Mon Sep 17 00:00:00 2001 From: gibbyb Date: Thu, 11 Sep 2025 18:14:08 -0500 Subject: [PATCH] Fix the end of shift function --- convex/statuses.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convex/statuses.ts b/convex/statuses.ts index 1642972..17a87a0 100644 --- a/convex/statuses.ts +++ b/convex/statuses.ts @@ -349,11 +349,11 @@ export const endOfShiftUpdate = action({ const hour = now.getHours(); const minute = now.getMinutes(); if (day == 0 || day === 6) return; - if (hour === 12) { + if (hour === 5) { await ctx.runMutation(api.statuses.updateAllStatuses, { message: 'End of shift', }); - } else if (hour === 11) { + } else if (hour === 4) { const ms = ((60 - minute) % 60) * 60 * 1000; await ctx.scheduler.runAfter(ms, api.statuses.endOfShiftUpdate); } else return;