Skip to content

Commit b98ab22

Browse files
fix: use model_dump
1 parent a00ed2d commit b98ab22

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

services/web/server/src/simcore_service_webserver/conversations/_conversation_message_service.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ async def notify_project_conversation_message_created(
4141
event_type=SOCKET_IO_PROJECT_CONVERSATION_MESSAGE_CREATED_EVENT,
4242
data={
4343
"project_id": project_id,
44-
"conversation_id": conversation_message.conversation_id,
45-
"message_id": conversation_message.message_id,
46-
"user_group_id": conversation_message.user_group_id,
47-
"content": conversation_message.content,
48-
"type": conversation_message.type,
49-
"created": conversation_message.created.isoformat(),
50-
"modified": conversation_message.modified.isoformat(),
44+
**conversation_message.model_dump(mode="json"),
5145
},
5246
)
5347

0 commit comments

Comments
 (0)