Chore: remove redundant tenant lookup in APIBasedExtensionAPI.post (#27067)

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
This commit is contained in:
Yongtao Huang
2025-10-18 09:54:52 +08:00
committed by GitHub
parent fea2ffb3ba
commit 35e24d4d14

View File

@@ -67,7 +67,6 @@ class APIBasedExtensionAPI(Resource):
@account_initialization_required
@marshal_with(api_based_extension_fields)
def post(self):
_, current_tenant_id = current_account_with_tenant()
parser = reqparse.RequestParser()
parser.add_argument("name", type=str, required=True, location="json")
parser.add_argument("api_endpoint", type=str, required=True, location="json")