From 0f4ca7ca93e3e9bf28e64ff7f6db09bb56194a4b Mon Sep 17 00:00:00 2001 From: Thushani Jayasekera Date: Mon, 9 Sep 2024 16:56:32 +0530 Subject: [PATCH] fix org id --- adapter/internal/oasparser/model/mgw_swagger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter/internal/oasparser/model/mgw_swagger.go b/adapter/internal/oasparser/model/mgw_swagger.go index eecbe7bf65..12835f9208 100644 --- a/adapter/internal/oasparser/model/mgw_swagger.go +++ b/adapter/internal/oasparser/model/mgw_swagger.go @@ -631,7 +631,7 @@ func (swagger *MgwSwagger) setXWso2Endpoints() error { } // SetEndpointsConfig set configs for Endpoints sent by api.yaml -func (endpointCluster *EndpointCluster) SetEndpointsConfig(endpointInfos []EndpointInfo, apiType string, orgId string) error { +func (endpointCluster *EndpointCluster) SetEndpointsConfig(endpointInfos []EndpointInfo, apiType string, orgID string) error { if endpointInfos == nil || len(endpointInfos) == 0 { return nil } @@ -670,7 +670,7 @@ func (endpointCluster *EndpointCluster) SetEndpointsConfig(endpointInfos []Endpo if endpointCluster.Config.CircuitBreakers == nil && apiType == "WS" { logger.LoggerOasparser.Debug("Adding CircuitBreakers for the endpoint cluster", endpointInfos[0].Endpoint) conf, _ := config.ReadConfigs() - isPaidOrg := config.GetIsPaidOrganization(orgId) + isPaidOrg := config.GetIsPaidOrganization(orgID) if isPaidOrg { CircuitBreaker := &CircuitBreakers{ MaxConnections: int32(conf.Envoy.Upstream.DevTierCircuitBreaker.MaxConnections),