From 567821cf3cb0f1dbb1702b32b380d118d8b387c9 Mon Sep 17 00:00:00 2001 From: aalicic Date: Tue, 20 Sep 2022 23:15:29 +0200 Subject: [PATCH] Video link added to online meeting --- .../api/adapters/web/mapping/AppointmentDtoMapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/caritas/cob/userservice/api/adapters/web/mapping/AppointmentDtoMapper.java b/src/main/java/de/caritas/cob/userservice/api/adapters/web/mapping/AppointmentDtoMapper.java index 08a1ca8de..6d8df55a4 100644 --- a/src/main/java/de/caritas/cob/userservice/api/adapters/web/mapping/AppointmentDtoMapper.java +++ b/src/main/java/de/caritas/cob/userservice/api/adapters/web/mapping/AppointmentDtoMapper.java @@ -37,8 +37,8 @@ public Map mapOf(Appointment appointment, AuthenticatedUser auth appointmentMap.put("consultantId", authenticatedUser.getUserId()); } else if (authenticatedUser.getRoles().contains(UserRole.TECHNICAL.getValue()) && appointment.getConsultantEmail() != null) { - Optional consultant = consultantRepository - .findByEmailAndDeleteDateIsNull(appointment.getConsultantEmail()); + Optional consultant = + consultantRepository.findByEmailAndDeleteDateIsNull(appointment.getConsultantEmail()); if (!consultant.isPresent()) { throw new BadRequestException( "Consultant doesn't exist for give email " + appointment.getConsultantEmail());