Skip to content

Commit

Permalink
Fix integration failure
Browse files Browse the repository at this point in the history
  • Loading branch information
senthalan committed Oct 2, 2023
1 parent aaf9731 commit b2bdbe9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected void checkTokenEnvAgainstDeploymentEnv(String keyEnvId, APIConfig matc

// TODO: This needs to be changed to Choreo env.
String apiEnvName = matchedAPI.getEnvironmentName();
if (StringUtils.isNotEmpty(keyEnvId) || !StringUtils.equals(keyEnvId, "DEFAULT_ENV")) {
if (StringUtils.isNotEmpty(keyEnvId) && !StringUtils.equals(keyEnvId, "DEFAULT_ENV")) {
if (StringUtils.equals(keyEnvId, apiEnvName)) {
log.debug("The access token has access to the API environment {}.", apiEnvName);
} else {
Expand Down

0 comments on commit b2bdbe9

Please sign in to comment.