fix(wds): remove time window restriction for manual force sync
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user