콘텐츠 댓글 푸시 대상자

- 댓글 : 콘텐츠 크리에이터에게만
- 답글 : 원 댓글 쓴 사람
This commit is contained in:
Klaus 2024-12-04 00:40:26 +09:00
parent c7513e9045
commit f503492bf9
1 changed files with 3 additions and 4 deletions

View File

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