Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
AmaliMatharaarachchi committed Mar 21, 2024
1 parent 321e825 commit 4b310d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adapter/internal/operator/synchronizer/synchronizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func deployMultipleAPIsInGateway(event *APIEvent, successChannel *chan SuccessEv
}
if apiState.APIDefinition.Spec.APIType == "REST" {
if apiState.ProdHTTPRoute != nil {
_, updatedLabels, err := GenerateAdapterInternalAPI(apiState, apiState.ProdHTTPRoute, constants.Production)
_, updatedLabels, err := UpdateInternalMapsFromHTTPRoute(apiState, apiState.ProdHTTPRoute, constants.Production)
if err != nil {
loggers.LoggerAPKOperator.ErrorC(logging.PrintError(logging.Error2665, logging.CRITICAL,
"Error deploying prod httpRoute of API : %v in Organization %v from environments %v. Error: %v",
Expand All @@ -156,7 +156,7 @@ func deployMultipleAPIsInGateway(event *APIEvent, successChannel *chan SuccessEv
}

if apiState.SandHTTPRoute != nil {
_, updatedLabels, err := GenerateAdapterInternalAPI(apiState, apiState.SandHTTPRoute, constants.Sandbox)
_, updatedLabels, err := UpdateInternalMapsFromHTTPRoute(apiState, apiState.SandHTTPRoute, constants.Sandbox)
if err != nil {
loggers.LoggerAPKOperator.ErrorC(logging.PrintError(logging.Error2666, logging.CRITICAL,
"Error deploying sand httpRoute of API : %v in Organization %v from environments %v. Error: %v",
Expand All @@ -174,7 +174,7 @@ func deployMultipleAPIsInGateway(event *APIEvent, successChannel *chan SuccessEv

if apiState.APIDefinition.Spec.APIType == "GraphQL" {
if apiState.ProdGQLRoute != nil {
_, updatedLabels, err := generateGQLAdapterInternalAPI(apiState, apiState.ProdGQLRoute, constants.Production)
_, updatedLabels, err := updateInternalMapsFromGQLRoute(apiState, apiState.ProdGQLRoute, constants.Production)
if err != nil {
loggers.LoggerAPKOperator.ErrorC(logging.PrintError(logging.Error2665, logging.CRITICAL,
"Error deploying prod gqlRoute of API : %v in Organization %v from environments %v. Error: %v",
Expand All @@ -187,7 +187,7 @@ func deployMultipleAPIsInGateway(event *APIEvent, successChannel *chan SuccessEv
}
}
if apiState.SandGQLRoute != nil {
_, updatedLabels, err := generateGQLAdapterInternalAPI(apiState, apiState.SandGQLRoute, constants.Sandbox)
_, updatedLabels, err := updateInternalMapsFromGQLRoute(apiState, apiState.SandGQLRoute, constants.Sandbox)
if err != nil {
loggers.LoggerAPKOperator.ErrorC(logging.PrintError(logging.Error2665, logging.CRITICAL,
"Error deploying sand gqlRoute of API : %v in Organization %v from environments %v. Error: %v",
Expand Down

0 comments on commit 4b310d3

Please sign in to comment.