fix: only show bookable time slots in availability endpoint #2
Loading…
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Commit
c5d1304removed the HasStandardAvailability filter fromGET /api/availability, so every schedule slot was rendered as clickable
even when ResDiary could not take the booking. Clicking an unbookable
slot failed at /api/book with an error. Affects all restaurants.
Restore the filter so only genuinely bookable slots are exposed, and add
route-level regression tests (mixed availability, all-unavailable, and
param passthrough).