fix: 메인 홈 - 추천 채널
- 콘텐츠가 빈 리스트로 반환되는 버그 수정
This commit is contained in:
		| @@ -72,10 +72,20 @@ class RecommendChannelQueryRepository( | ||||
|                 ) | ||||
|             ) | ||||
|             .from(audioContent) | ||||
|             .leftJoin(audioContentLike).on(audioContentLike.audioContent.id.eq(audioContent.id)) | ||||
|             .leftJoin(audioContentComment).on(audioContentComment.audioContent.id.eq(audioContent.id)) | ||||
|             .leftJoin(audioContentLike) | ||||
|             .on( | ||||
|                 audioContentLike.audioContent.id.eq(audioContent.id) | ||||
|                     .and(audioContentLike.isActive.isTrue) | ||||
|             ) | ||||
|             .leftJoin(audioContentComment) | ||||
|             .on( | ||||
|                 audioContentComment.audioContent.id.eq(audioContent.id) | ||||
|                     .and(audioContentComment.isActive.isTrue) | ||||
|             ) | ||||
|             .where(audioContent.member.id.eq(creatorId)) | ||||
|             .groupBy(audioContent.id) | ||||
|             .orderBy(audioContentLike.id.countDistinct().desc()) | ||||
|             .limit(3) | ||||
|             .fetch() | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user