fix(chat-room): ONLY_FULL_GROUP_BY로 인한 그룹화 오류 수정
This commit is contained in:
@@ -53,7 +53,7 @@ interface ChatRoomRepository : JpaRepository<ChatRoom, Long> {
|
||||
AND pc.participantType = kr.co.vividnext.sodalive.chat.room.ParticipantType.CHARACTER
|
||||
AND pc.isActive = true
|
||||
AND r.isActive = true
|
||||
GROUP BY r.id, r.title, r.createdAt, pc.character.imagePath
|
||||
GROUP BY r.id, r.title, r.createdAt, pc.character.imagePath, pc.character.characterType
|
||||
ORDER BY COALESCE(MAX(m.createdAt), r.createdAt) DESC
|
||||
"""
|
||||
)
|
||||
|
Reference in New Issue
Block a user