Timothy J. Baek 1 năm trước cách đây
mục cha
commit
4c221eabef
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      backend/apps/web/models/chats.py

+ 2 - 1
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())