class EcoNewsCommentServiceImpl implements EcoNewsCommentService {

    @Override
    @Transactional
    public int countLikes(Long id) {
        EcoNewsComment comment = ecoNewsCommentRepo.findById(id).orElseThrow(
            () -> new BadRequestException(ErrorMessage.COMMENT_NOT_FOUND_EXCEPTION)
        );
        return comment.getUsersLiked().size();
    }

}