From f2727fa62cbae4627584ec4439d51c22fa386ac5 Mon Sep 17 00:00:00 2001 From: shanurrahman Date: Tue, 5 Dec 2023 08:23:46 +0300 Subject: [PATCH] load swagger on workflow --- llm-server/routes/_swagger/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm-server/routes/_swagger/controller.py b/llm-server/routes/_swagger/controller.py index 6966df173..bf5c94586 100644 --- a/llm-server/routes/_swagger/controller.py +++ b/llm-server/routes/_swagger/controller.py @@ -47,7 +47,7 @@ def get_swagger_files(swagger_url: str) -> Response: @_swagger.route("/get/b/", methods=["GET"]) def get_swagger_files_by_bot_id(bot_id: str) -> Response: - swagger_file = mongo.swagger_files.find_one({"bot_id": bot_id}) + swagger_file = mongo.swagger_files.find_one({"meta.bot_id": bot_id}) if not swagger_file: return jsonify({"message": "Swagger file not found"}), 404 swagger_file["_id"] = str(swagger_file["_id"])