class FavoritePlaceServiceImpl implements FavoritePlaceService {

    @Override
    public PlaceInfoDto getInfoFavoritePlace(Long placeId) {
        log.info(LogMessage.IN_GET_ACCESS_PLACE_AS_FAVORITE_PLACE, placeId);
        FavoritePlace favoritePlace = findByPlaceId(placeId);
        PlaceInfoDto placeInfoDto =
            modelMapper.map(
                placeService
                    .findById(favoritePlace.getPlace().getId()),
                PlaceInfoDto.class);
        placeInfoDto.setRate(placeService.averageRate(favoritePlace.getPlace().getId()));
        placeInfoDto.setName(favoritePlace.getName());
        return placeInfoDto;
    }

}