Booking
This commit is contained in:
@@ -418,13 +418,15 @@ func (s *Server) patchBookings(w http.ResponseWriter, bookingId string, r *http.
|
||||
|
||||
func (s *Server) getBookings(w http.ResponseWriter, bookingId string, r *http.Request) {
|
||||
|
||||
log.Debug().Str("booking id", bookingId).Msg("GetBooking request")
|
||||
|
||||
booking, err := s.Handler.GetBookings(
|
||||
r.Context(),
|
||||
bookingId,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("error in PatchBookings")
|
||||
log.Error().Err(err).Msg("error in GetBookings")
|
||||
jsonError(w, err, http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user