From 4c221eabefd8f824e68a98e9738e55ac74054c37 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 20 Apr 2024 18:29:14 -0500 Subject: [PATCH] refac --- backend/apps/web/models/chats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/apps/web/models/chats.py b/backend/apps/web/models/chats.py index f7cc0120e..cc3631d0b 100644 --- a/backend/apps/web/models/chats.py +++ b/backend/apps/web/models/chats.py @@ -123,7 +123,8 @@ class ChatTable: "user_id": f"shared-{chat_id}", "title": chat.title, "chat": chat.chat, - "created_at": int(time.time()), + "created_at": chat.created_at, + "updated_at": int(time.time()), } ) shared_result = Chat.create(**shared_chat.model_dump())