Skip to content

Commit

Permalink
Video link added to online meeting
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanalicic committed Sep 20, 2022
1 parent d42150f commit 567821c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public Map<String, Object> mapOf(Appointment appointment, AuthenticatedUser auth
appointmentMap.put("consultantId", authenticatedUser.getUserId());
} else if (authenticatedUser.getRoles().contains(UserRole.TECHNICAL.getValue())
&& appointment.getConsultantEmail() != null) {
Optional<Consultant> consultant = consultantRepository
.findByEmailAndDeleteDateIsNull(appointment.getConsultantEmail());
Optional<Consultant> consultant =
consultantRepository.findByEmailAndDeleteDateIsNull(appointment.getConsultantEmail());
if (!consultant.isPresent()) {
throw new BadRequestException(
"Consultant doesn't exist for give email " + appointment.getConsultantEmail());
Expand Down

0 comments on commit 567821c

Please sign in to comment.