docs(whoop): correct the sync overlap comment after the workout widening

The header comment still described WHOOP_RECOVERY_SLEEP_OVERLAP_MS as 24 h
and claimed workout ingest used the narrow default. The constant has been
7 days, and workout ingest now shares it so a late phone-sync to the WHOOP
cloud no longer drops the workout outside the window. Comment only.
This commit is contained in:
Marc-André Bombeck committed 2026-06-14 11:03:24 +02:00
1 parent 458cb91b92
commit 3077adfe06
1 file changed
+4 -2
+4 -2
View File
@@ -17,8 +17,10 @@
*
* The incremental window starts from `lastSyncedAt - overlap`. WHOOP re-scores
* recovery/sleep hours after the night, so the overlap must comfortably cover
* the re-score lag — `WHOOP_RECOVERY_SLEEP_OVERLAP_MS` is 24 h; workout/cycle
* use the smaller `WHOOP_DEFAULT_OVERLAP_MS`.
* the re-score lag — `WHOOP_RECOVERY_SLEEP_OVERLAP_MS` is 7 days, now shared by
* workout ingest too (a phone that syncs to the WHOOP cloud well after a
* workout would otherwise fall outside a narrow window and never land);
* `WHOOP_DEFAULT_OVERLAP_MS` stays the narrow fallback for other resources.
*/
import { AsyncLocalStorage } from "node:async_hooks";
import { prisma } from "@/lib/db";