Propo41 / bookify

Tailored for organizations, a simple tool that can enhance productivity by minimizing the time spent finding and securing meeting rooms in google calendar
https://bookify-dev-u8p8s.ondigitalocean.app/
MIT License
6 stars 1 forks source link

check for availability of the room when "change room" is triggered #15

Closed Propo41 closed 1 week ago

Propo41 commented 2 weeks ago

When user books a room, the list of all available rooms for that duration is also sent as a response. the user then has the choice of changing the room. When this happens, the API simply updates the event by changing its room.

Task is to add another availability check to get a final confirmation that the room has not been occupied already in the meantime.

Currently, the client side uses a simple hack to compare the event creation time and the time when the user sends a change request. If it exceeds 2mins, then the request is not processed