Advice with a booking app that uses time slots

I have a booking app where, when a customer clicks a day, they must choose a time slot (they can book as many slots as they like at once). Once one person books that time slot, I don’t want anyone else to be able to. Currently I have it setup so that, they click a date, a modal pops up with the available time slots (each slot shows conditionally based on if it’s true/false property for availability is set to true), when a customer clicks one, it turn the availability property false which then stops them or anyone else booking that slot.

The issue i’ve got is, this happens instantly when the slot is picked - if the customer didn’t finish the booking for whatever reason, that slot is still going to be false (unavailable) which wouldn’t actually be true because they didn’t finish the booking.

Does anyone have any advice?

Off the top of my head.

Set a date/time field in the TimeSlot collection to when the user first starts reserving the slot, only show time slots in your list that are MIN 5 mins after that time, and go further to only allow linking the next screen when MIN 5 mins have passed… so that if two people or more are browsing the same list you may be covered. When creating the timeslots initally you may have to prefill this field to be = created time, just as a one off.

I feel you will need to road test this multiple reservation scenario and build in a buffer time to avoid duplicates.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.