Update and return an existing booking. - [x] An authenticated user is required for a successful response - [x] Only the owner of the booking is authorized to edit - [x] Booking record is updated in the database after request - [x] Booking data returned includes the `id`, `userId`, `spotId`, `startDate`, `endDate`, `createdAt`, and `updatedAt` - [x] Error response with status 404 is given when a booking does not exist with the provided `id` - [x] Error response with status 400 is given when it is past the booking's `endDate` (no editing of past bookings) - [x] Error response with status 403 is given when a booking already exists for the spot on the specified dates
Update and return an existing booking.
id,userId,spotId,startDate,endDate,createdAt, andupdatedAtthe provided
idendDate(no editing of past bookings)the spot on the specified dates