mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
Previous flow cached the unfiltered slot list AND applied the "hide past slots" filter — but only on the fresh-fetch path. A cache hit returned the stored list untouched, so by lunchtime agents saw morning slots that had already passed. Refactored into a post-cache filterPastSlotsForToday() helper applied on both cache-hit and fresh paths. Cache stores the full day's slots (keyed by doctorId + dayOfWeek), so same-weekday reuse across weeks stays correct. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9.3 KiB
9.3 KiB