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.
This commit is contained in:
Marc-André Bombeck committed 2026-06-14 14:05:32 +02:00
1 parent ae1373637f
commit e1cee6086d
1 file changed
-1
-1
View File
@@ -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;
/**