Fix the post API issues

This commit is contained in:
staticGuru 2023-10-09 16:16:20 +05:30
parent 3753f7d138
commit 72481e8453

View File

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