Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
fixing the list workflow api
Browse files Browse the repository at this point in the history
  • Loading branch information
codebanesr committed Dec 4, 2023
1 parent f6c3ec4 commit ed746d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm-server/routes/_swagger/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_swagger_files(swagger_url: str) -> Response:

@_swagger.route("/get/b/<bot_id>", methods=["GET"])
def get_swagger_files_by_bot_id(bot_id: str) -> Response:
swagger_file = mongo.swagger_files.find_one({"meta.bot_id": bot_id})
swagger_file = mongo.swagger_files.find_one({"bot_id": bot_id})
if not swagger_file:
return jsonify({"message": "Swagger file not found"}), 404
swagger_file["_id"] = str(swagger_file["_id"])
Expand Down

0 comments on commit ed746d1

Please sign in to comment.