If two users are trying to book at the same time, with same dates and same car selection, a unique car can be double booked.
The check for available cars are made in showCars. We need to make an extra check in updateAvailability to confirm that the car being booked is not already booked.
If two users are trying to book at the same time, with same dates and same car selection, a unique car can be double booked.
The check for available cars are made in showCars. We need to make an extra check in updateAvailability to confirm that the car being booked is not already booked.