From 145aa11c55bbfe3c3957f0c01a89804a33b2977f Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Mon, 30 Mar 2026 07:30:49 +0300 Subject: [PATCH] fix(wds): remove time window restriction for manual force sync Co-Authored-By: Claude Opus 4.6 (1M context) --- src/modules/parcel-sync/services/weekend-deep-sync.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/modules/parcel-sync/services/weekend-deep-sync.ts b/src/modules/parcel-sync/services/weekend-deep-sync.ts index 3602814..06e5f6c 100644 --- a/src/modules/parcel-sync/services/weekend-deep-sync.ts +++ b/src/modules/parcel-sync/services/weekend-deep-sync.ts @@ -177,11 +177,7 @@ export function isWeekendWindow(): boolean { /** Check if still within the window (called during processing) */ function stillInWindow(force?: boolean): boolean { - if (force) { - // Force mode: any night 22:00–05:00 - const hour = new Date().getHours(); - return hour >= 22 || hour < 5; - } + if (force) return true; // Manual trigger — no time restriction const hour = new Date().getHours(); // We can be in 23,0,1,2,3 — stop at 4 if (hour >= WEEKEND_END_HOUR && hour < WEEKEND_START_HOUR) return false;