mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
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:
1 parent
ae1373637f
commit
e1cee6086d
1 file changed
-1
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user