Loading lib/Controller/BookingController.php +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ class BookingController extends Controller { } catch (InvalidArgumentException $e) { $this->logger->warning($e->getMessage(), ['exception' => $e]); return JsonResponse::fail(null, Http::STATUS_UNPROCESSABLE_ENTITY); } catch (ServiceException|ClientException $e) { } catch (ServiceException $e) { $this->logger->error($e->getMessage(), ['exception' => $e]); return JsonResponse::errorFromThrowable($e, $e->getHttpCode() ?? Http::STATUS_INTERNAL_SERVER_ERROR); } Loading lib/Service/Appointments/BookingService.php +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ class BookingService { } /** * @throws ClientException|ServiceException|DbException * @throws ServiceException|DbException|NoSlotFoundException|InvalidArgumentException */ public function book(AppointmentConfig $config,int $start, int $end, string $timeZone, string $displayName, string $email, ?string $description = null): Booking { $bookingSlot = current($this->getAvailableSlots($config, $start, $end)); Loading Loading
lib/Controller/BookingController.php +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ class BookingController extends Controller { } catch (InvalidArgumentException $e) { $this->logger->warning($e->getMessage(), ['exception' => $e]); return JsonResponse::fail(null, Http::STATUS_UNPROCESSABLE_ENTITY); } catch (ServiceException|ClientException $e) { } catch (ServiceException $e) { $this->logger->error($e->getMessage(), ['exception' => $e]); return JsonResponse::errorFromThrowable($e, $e->getHttpCode() ?? Http::STATUS_INTERNAL_SERVER_ERROR); } Loading
lib/Service/Appointments/BookingService.php +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ class BookingService { } /** * @throws ClientException|ServiceException|DbException * @throws ServiceException|DbException|NoSlotFoundException|InvalidArgumentException */ public function book(AppointmentConfig $config,int $start, int $end, string $timeZone, string $displayName, string $email, ?string $description = null): Booking { $bookingSlot = current($this->getAvailableSlots($config, $start, $end)); Loading