add the conversation in the result response

This commit is contained in:
staticGuru 2023-10-09 15:17:32 +05:30
parent 036297ef36
commit 95fe103718

View File

@ -60,7 +60,7 @@ def update_conversation_name():
id = data["id"] id = data["id"]
name = data["name"] name = data["name"]
conversation = conversations_collection.update_one({"_id": ObjectId(id)},{"$set":{"name":name}}) conversation = conversations_collection.update_one({"_id": ObjectId(id)},{"$set":{"name":name}})
return {"status": "ok"} return {"status": "ok","result":conversation}
@user.route("/api/feedback", methods=["POST"]) @user.route("/api/feedback", methods=["POST"])