Skip to content

Commit

Permalink
🔨 Fix ChatRoomResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
wonseok committed Jan 26, 2025
1 parent a438b32 commit 7e6ac60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.toyProject7.karrot.chatRoom.controller

import com.toyProject7.karrot.article.controller.Article
import com.toyProject7.karrot.chatRoom.service.ChatRoomService
import com.toyProject7.karrot.user.AuthUser
import com.toyProject7.karrot.user.controller.User
Expand Down Expand Up @@ -54,6 +53,6 @@ data class CreateChatRoomRequest(
)

data class ChatRoomResponse(
val article: Article,
val chatRoom: ChatRoom,
val messages: List<ChatMessage>,
)
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ChatRoomService(
)
val messages = chatMessageEntities.map { chatMessageEntity -> ChatMessage.fromEntity(chatMessageEntity) }
return ChatRoomResponse(
article = chatRoom.article,
chatRoom = chatRoom,
messages = messages,
)
}
Expand Down

0 comments on commit 7e6ac60

Please sign in to comment.