Compare commits

..

No commits in common. "e334d1e5d9ef07dc5a373538c1477d5f2a72f83d" and "b735e861d00c893bd6aed840fc140976348f320c" have entirely different histories.

1 changed files with 4 additions and 3 deletions

View File

@ -191,13 +191,13 @@ class AudioContentCommentQueryRepositoryImpl(
): List<FindPushTokenByContentIdAndCommentParentIdMyMemberIdResponse> {
var where = audioContent.id.eq(contentId)
.and(member.id.ne(myMemberId))
.and(audioContentComment.isActive.isTrue)
if (commentParentId != null) {
where = where.and(
audioContentComment.parent.id.eq(commentParentId)
.or(audioContentComment.id.eq(commentParentId))
)
.and(audioContentComment.isActive.isTrue)
}
val response = if (commentParentId != null) {
@ -221,8 +221,9 @@ class AudioContentCommentQueryRepositoryImpl(
member.container
)
)
.from(audioContent)
.innerJoin(audioContent.member, member)
.from(audioContentComment)
.innerJoin(audioContentComment.audioContent, audioContent)
.innerJoin(audioContentComment.member, member)
.where(where)
.fetch()
}