Skip to content

Commit

Permalink
hotfix : domain recommendation reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-GyeongSik committed Nov 16, 2023
1 parent 55c4414 commit 98e19ca
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ public RecommendationService(DomainRecommendation domainRecommendation,
public Recommendations getRecommendations(Long memberId) {
List<RecommendLecture> generalRecommendLectureList = getGeneralRecommends();
List<RecommendLecture> channelRecommendLectureList = getRecommendsByChannel(memberId);
List<RecommendLecture> societyRecommendLectureList = domainRecommendation.getSocietyRecommendations();
List<RecommendLecture> scienceRecommendLectureList = domainRecommendation.getScienceRecommendations();
List<RecommendLecture> economicRecommendLectureList = domainRecommendation.getEconomicRecommendations();
List<RecommendLecture> techRecommendLectureList = domainRecommendation.getTechRecommendations();
List<RecommendLecture> societyRecommendLectureList = new ArrayList<>();
List<RecommendLecture> scienceRecommendLectureList = new ArrayList<>();
List<RecommendLecture> economicRecommendLectureList = new ArrayList<>();
List<RecommendLecture> techRecommendLectureList = new ArrayList<>();

societyRecommendLectureList.addAll(domainRecommendation.getSocietyRecommendations());
scienceRecommendLectureList.addAll(domainRecommendation.getScienceRecommendations());
economicRecommendLectureList.addAll(domainRecommendation.getEconomicRecommendations());
techRecommendLectureList.addAll(domainRecommendation.getTechRecommendations());

Set<String> enrolledLectureSet = lectureService.getEnrolledLectures(memberId);

Expand Down

0 comments on commit 98e19ca

Please sign in to comment.