mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-18 16:13:19 +00:00
style in button and user in back route delete all conv
This commit is contained in:
1 parent
b84842df3d
commit
9804965a20
2 files changed
+3
-9
No files matched your search
@@ -39,7 +39,8 @@ def delete_conversation():
|
||||
|
||||
@user.route("/api/delete_all_conversations", methods=["POST"])
|
||||
def delete_all_conversations():
|
||||
conversations_collection.delete_many({})
|
||||
user_id = "local"
|
||||
conversations_collection.delete_many({"user":user_id})
|
||||
return {"status": "ok"}
|
||||
|
||||
@user.route("/api/get_conversations", methods=["get"])
|
||||
|
||||
Reference in new issue
Block a user