캐릭터 챗봇 #338
|
@ -43,7 +43,8 @@ class CharacterImageController(
|
||||||
|
|
||||||
// 전체 활성 이미지 수(프로필 제외) 파악을 위해 최소 페이지 조회
|
// 전체 활성 이미지 수(프로필 제외) 파악을 위해 최소 페이지 조회
|
||||||
val totalActiveElements = imageService.pageActiveByCharacter(characterId, PageRequest.of(0, 1)).totalElements
|
val totalActiveElements = imageService.pageActiveByCharacter(characterId, PageRequest.of(0, 1)).totalElements
|
||||||
val ownedCount = imageService.countOwnedActiveByCharacterForMember(characterId, member.id!!)
|
// 프로필 이미지는 무료로 볼 수 있으므로 보유 개수에도 +1 반영
|
||||||
|
val ownedCount = imageService.countOwnedActiveByCharacterForMember(characterId, member.id!!) + 1
|
||||||
|
|
||||||
val totalCount = totalActiveElements + 1 // 프로필 포함
|
val totalCount = totalActiveElements + 1 // 프로필 포함
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue