Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayroid committed Dec 11, 2023
1 parent dd72603 commit 6ebbdb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/ipServerController.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ const confirmBookingStatus = async (req, res) => {
}

// 3. CHECKING IF SPOT IS ALREADY BOOKED
if (spot[0].parkingStatus === "booked") {
return res.status(StatusCodes.BAD_REQUEST).send("Spot Already Booked!");
if (spot[0].parkingStatus !== "booked") {
return res.status(StatusCodes.BAD_REQUEST).send("Spot not Pre-Booked!");
}

// 4. CHECK IF PARKING SPOT IS ALREADY PARKED
Expand Down

0 comments on commit 6ebbdb7

Please sign in to comment.