콘텐츠 메인 시리즈 탭 - 큐레이션
- 시리즈 정렬 추가 - 내용이 추가되지 않은 큐레이션은 보이지 않도록 수정
This commit is contained in:
		| @@ -130,6 +130,7 @@ class AudioContentMainTabSeriesService( | ||||
|                     ) | ||||
|                 ) | ||||
|             } | ||||
|             .filter { it.items.isNotEmpty() } | ||||
|  | ||||
|         return GetContentMainTabSeriesResponse( | ||||
|             contentBannerList = contentBannerList, | ||||
|   | ||||
| @@ -231,9 +231,10 @@ class ContentSeriesQueryRepositoryImpl( | ||||
|             .and(blockMember.blockedMember.id.eq(memberId)) | ||||
|  | ||||
|         var where = series.isActive.isTrue | ||||
|             .and(audioContentCuration.id.eq(curationId)) | ||||
|             .and(member.isActive.isTrue) | ||||
|             .and(member.role.eq(MemberRole.CREATOR)) | ||||
|             .and(audioContentCuration.id.eq(curationId)) | ||||
|             .and(audioContentCurationItem.isActive.isTrue) | ||||
|             .and(blockMember.id.isNull) | ||||
|  | ||||
|         if (!isAdult) { | ||||
| @@ -248,6 +249,7 @@ class ContentSeriesQueryRepositoryImpl( | ||||
|             .innerJoin(series.member, member) | ||||
|             .leftJoin(blockMember).on(blockMemberCondition) | ||||
|             .where(where) | ||||
|             .orderBy(audioContentCurationItem.orders.asc()) | ||||
|             .fetch() | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user