fix(character-main): 최근 대화 캐릭터 조회에서 roomId 대신 characterId 반환
This commit is contained in:
@@ -39,6 +39,7 @@ interface ChatRoomRepository : JpaRepository<ChatRoom, Long> {
|
||||
value = """
|
||||
SELECT new kr.co.vividnext.sodalive.chat.room.dto.ChatRoomListQueryDto(
|
||||
r.id,
|
||||
pc.character.id,
|
||||
r.title,
|
||||
pc.character.imagePath,
|
||||
pc.character.characterType,
|
||||
@@ -54,7 +55,7 @@ interface ChatRoomRepository : JpaRepository<ChatRoom, Long> {
|
||||
AND pc.isActive = true
|
||||
AND r.isActive = true
|
||||
AND m.isActive = true
|
||||
GROUP BY r.id, r.title, r.createdAt, pc.character.imagePath, pc.character.characterType
|
||||
GROUP BY r.id, r.title, r.createdAt, pc.character.id, pc.character.imagePath, pc.character.characterType
|
||||
ORDER BY MAX(m.createdAt) DESC
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user