pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java
@@ -236,7 +236,9 @@ if(!isConsultantInList) { CustomerFavoriteConsultant customerFavoriteConsultant = new CustomerFavoriteConsultant(); customerFavoriteConsultant.setCreatedDate(addConsultantData.getCreatedTime()); Optional<Instant> createdTime = Optional.ofNullable(addConsultantData.getCreatedTime()); customerFavoriteConsultant.setCreatedDate(createdTime.orElse(Instant.now())); customerFavoriteConsultant.setConsultant(consultant); customerFavoriteConsultant.setCustomerId(userId);