Skip to content

Commit a8e21ea

Browse files
committed
브로드캐스트 시스템 메세지 저장 완료
1 parent f78f0fd commit a8e21ea

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/routers/chat_ws.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,11 @@ async def websocket_chat(websocket: WebSocket, chat_id: int, db: Session = Depen
146146
# REST API(update_deal_status)에서 호출함
147147
async def broadcast_deal_update(chat_id: int, deal_status: str, post_status: str, system_message: str):
148148
data = {
149-
"type": "DEAL_UPDATE",
149+
"type": "deal_update",
150150
"chatId": chat_id,
151151
"dealStatus": deal_status,
152152
"postStatus": post_status,
153-
"systemMessage": {
154-
"messageId": system_msg.id,
155-
"content": system_msg.content,
156-
"sendAt": system_msg.created_at.isoformat()
157-
}
153+
"systemMessage": system_message,
158154
}
159155

160156
await broadcast(chat_id, data)

0 commit comments

Comments
 (0)