From e1cee6086d95eeaf09baad9374c52d9c571baa34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 14 Jun 2026 14:05:32 +0200 Subject: [PATCH] fix(validation): drop the orphaned medication clock-skew constant The shared validateEntryInstant guard now owns the future clock-skew allowance, so the medication-local TAKEN_AT_CLOCK_SKEW_MS export is dead. Remove it; medication intake keeps its tighter 5-year floor via TAKEN_AT_MAX_AGE_MS. Clears the dead-code gate. --- src/lib/validations/medication.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/validations/medication.ts b/src/lib/validations/medication.ts index cce5059d0..fb2748da4 100644 --- a/src/lib/validations/medication.ts +++ b/src/lib/validations/medication.ts @@ -204,7 +204,6 @@ function hhmmToMinutes(hhmm: string): number { * validator's window. Slot-distance / medication-start checks stay in * the routes — the schema cannot see the medication. */ -export const TAKEN_AT_CLOCK_SKEW_MS = 5 * 60 * 1000; export const TAKEN_AT_MAX_AGE_MS = 5 * 365 * 24 * 60 * 60 * 1000; /**