account -> member

This commit is contained in:
2023-08-07 14:46:31 +09:00
parent 872e84baf1
commit 6ff38decab
5 changed files with 11 additions and 11 deletions

View File

@@ -149,12 +149,12 @@ class ExplorerQueryRepository(
.distinct()
}
fun getSearchChannel(channel: String, accountId: Long): List<Member> {
fun getSearchChannel(channel: String, memberId: Long): List<Member> {
return queryFactory.selectFrom(member)
.where(
member.nickname.containsIgnoreCase(channel)
.and(member.isActive.isTrue)
.and(member.id.ne(accountId))
.and(member.id.ne(memberId))
.and(member.role.eq(MemberRole.CREATOR))
)
.fetch()
@@ -266,8 +266,8 @@ class ExplorerQueryRepository(
},
account.tags
.asSequence()
.filter { accountCounselorTag -> accountCounselorTag.tag.isActive }
.map { accountCounselorTag -> accountCounselorTag.tag.tag }
.filter { tag -> tag.tag.isActive }
.map { tag -> tag.tag.tag }
.toList()
)
}
@@ -313,8 +313,8 @@ class ExplorerQueryRepository(
},
it.tags
.asSequence()
.filter { accountCounselorTag -> accountCounselorTag.tag.isActive }
.map { accountCounselorTag -> accountCounselorTag.tag.tag }
.filter { tag -> tag.tag.isActive }
.map { tag -> tag.tag.tag }
.toList()
)
}