This commit is contained in:
2023-03-30 08:44:58 +02:00
parent bf6453b963
commit 0ae5730e7f
17 changed files with 305 additions and 44 deletions

View File

@@ -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
}