parent
2c4c19990a
commit
0c153aeb6a
|
@ -307,8 +307,11 @@ class ExplorerService(
|
||||||
|
|
||||||
val followerList = queryRepository.getFollowerList(creatorId, pageable.offset, pageable.pageSize.toLong())
|
val followerList = queryRepository.getFollowerList(creatorId, pageable.offset, pageable.pageSize.toLong())
|
||||||
.map {
|
.map {
|
||||||
val isFollow = if (it.role == MemberRole.CREATOR) {
|
val creatorFollowing = if (it.role == MemberRole.CREATOR) {
|
||||||
queryRepository.isFollow(creatorId = it.userId, memberId = member.id!!)
|
queryRepository.getCreatorFollowing(
|
||||||
|
creatorId = it.userId,
|
||||||
|
memberId = member.id!!
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
@ -317,7 +320,8 @@ class ExplorerService(
|
||||||
userId = it.userId,
|
userId = it.userId,
|
||||||
profileImage = it.profileImage,
|
profileImage = it.profileImage,
|
||||||
nickname = it.nickname,
|
nickname = it.nickname,
|
||||||
isFollow = isFollow
|
isFollow = creatorFollowing?.isFollow ?: false,
|
||||||
|
isNotify = creatorFollowing?.isNotify ?: false
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,5 +9,6 @@ data class GetFollowerListResponseItem(
|
||||||
val userId: Long,
|
val userId: Long,
|
||||||
val profileImage: String,
|
val profileImage: String,
|
||||||
val nickname: String,
|
val nickname: String,
|
||||||
val isFollow: Boolean?
|
val isFollow: Boolean?,
|
||||||
|
val isNotify: Boolean?
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue