캐릭터 챗봇 #338

Merged
klaus merged 119 commits from test into main 2025-09-10 06:08:47 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit ad69dad725 - Show all commits

View File

@ -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 // 프로필 포함