style in button and user in back route delete all conv

This commit is contained in:
TomasMatarazzo
2024-04-25 23:43:45 -03:00
parent b84842df3d
commit 9804965a20
2 changed files with 3 additions and 9 deletions

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"])