-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Description
Issue Summary
When testing the event type's seatsPerTimeSlot property, we've come across an issue. The property was set to 4, yet only 2 clients could book the same time slot. So we've tested it with 5, and now 3 clients could book... we've tested it with 6, still only 3 clients could book. And finally, with the seatsPerTimeSlot property set to 7, we've managed to limit the time slots as expected.
Problem 1: Why did I need to set the property to 7?
Problem 2: When creating bookings via API, this property is not taken into consideration at all. It doesn't merge client events in the Cal.com user's google calendar, as it happens with the embed scheduler, and it also allows me to create as many bookings as I'd like (even if I use the same email more than once, the booking is still created). Why is that?
Final Question (perhaps not a problem): Why's there a seatsPerTimeSlot at the booking level? I've tried setting this property to 4 on the event type and also on the booking, but still no limits are being applied. That's already defined on the event type
Steps to Reproduce
- Create event type with 4 seats
- Create booking of this event type via API
- Try getting the API to forbid the creation of the booking based on the seatsPerTimeSlot (I couldn't)
Technical details
- Using postman to create bookings:
{
"metadata": {},
"eventTypeId": 541371,
"start": "2024-01-30T11:00:00.000Z",
"end": "2024-01-30T12:00:00.000Z",
"seatsPerTimeSlot": 4,
"responses": {
"name": "Hello Hello",
"email": "[email protected]",
"location": "Papayya HQ"
},
"timeZone": "Europe/Lisbon",
"language": "en",
"title": "Debugging between Jose and Hello Hello",
"description": null,
"status": "ACCEPTED"
}
Evidence
From SyncLinear.com | CAL-3004