Files
SixFlagsSuperCalendar/backend/scripts
josh 7c88a3e568
Build and Deploy / Build & Push (push) Successful in 1m5s
fix: only sample wait times within each park's operating window
Queue-Times keeps reporting yesterday's last wait with isOpen=true overnight,
so the per-ride open check wasn't enough — the sampler was recording phantom
"open" samples between close and the next morning's first refresh, padding
both wait-time averages and uptime% with stale data.

Add isWithinOperatingWindow gate (same check the /rides route uses) so the
sampler only runs during the park's actual hours plus the 1-hour closing
buffer. Includes a one-off wipe script for the accumulated bad data.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-30 07:57:08 -04:00
..