캐릭터 챗봇 #338
| @@ -26,7 +26,7 @@ class AdminChatCharacterService( | ||||
|     @Transactional(readOnly = true) | ||||
|     fun getActiveChatCharacters(pageable: Pageable, imageHost: String = ""): ChatCharacterListPageResponse { | ||||
|         // isActive가 true인 캐릭터만 조회 | ||||
|         val page = chatCharacterRepository.findByActiveTrue(pageable) | ||||
|         val page = chatCharacterRepository.findByIsActiveTrue(pageable) | ||||
|  | ||||
|         // 페이지 정보 생성 | ||||
|         val content = page.content.map { ChatCharacterListResponse.from(it, imageHost) } | ||||
|   | ||||
| @@ -12,7 +12,7 @@ import org.springframework.stereotype.Repository | ||||
| interface ChatCharacterRepository : JpaRepository<ChatCharacter, Long> { | ||||
|     fun findByCharacterUUID(characterUUID: String): ChatCharacter? | ||||
|     fun findByName(name: String): ChatCharacter? | ||||
|     fun findByActiveTrue(pageable: Pageable): Page<ChatCharacter> | ||||
|     fun findByIsActiveTrue(pageable: Pageable): Page<ChatCharacter> | ||||
|  | ||||
|     /** | ||||
|      * 이름, 설명, MBTI, 태그로 캐릭터 검색 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user