Open milospuac opened 2 months ago
The error message you're encountering, "Could not book the meeting. Booking Limit for this event type has been reached," is likely due to how the booking system calculates weekly limits, especially when bookings span across the end of one month and the beginning of another. This calculation does not align perfectly with a standard calendar week but rather with the system's definition of a week in relation to booking limits.
A recent change in the booking logic, specifically the addition of a "metadata" column to the "Booking" table, could also impact how bookings are processed. This change might affect the application's interaction with the database, potentially leading to errors if not properly accounted for.
Moreover, the system has a known limitation in counting bookings within a specified period. It does not count bookings that partially overlap the start or end of the period, which could lead to premature or incorrect triggering of the booking limit reached error. This is due to the database query conditions that require a booking's start and end times to be strictly within the specified period.
The system's handling of bookings and calculation of weekly limits involves parsing booking limits, time zone adjustments, and counting bookings within a defined period while handling the transition between months. This complex logic ensures accurate calculation of weekly limits but may contribute to discrepancies when the expectation is based on a standard calendar week.
If you're experiencing this error under specific circumstances not covered by these explanations, providing more details about those circumstances could help in identifying a more precise cause and solution.
To continue the conversation, mention @dosu.
This error is showing when booking the event type that has 5 bookings per week limit, instead of just blocking that week
https://cal.com/team/chronius-health/comprehensivecare-kickoff
From SyncLinear.com | CAL-3692