style in button and user in back route delete all conv

This commit is contained in:
TomasMatarazzo committed 2024-04-25 23:43:45 -03:00
1 parent b84842df3d
commit 9804965a20
2 files changed
+3 -9

No files matched your search

+2 -1
View File
@@ -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"])