vaffeljarnet / infotivCarRental

0 stars 0 forks source link

Simultaneous booking by two user can cause double booking of car #6

Open vaffeljarnet opened 6 years ago

vaffeljarnet commented 6 years ago

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.

vaffeljarnet commented 6 years ago

Issue resolved in source code. Will be added to live page in next upload.