Skip to content

Commit

Permalink
Merge pull request #1976 from VirajSalaka/analytics-fix-t
Browse files Browse the repository at this point in the history
analytics fix: errors for tenant are not shown properly
  • Loading branch information
Rajith90 authored Apr 23, 2021
2 parents ab255b9 + e64af96 commit 02834ba
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ public API getApi() {
api.setApiType(requestContext.getMatchedAPI().getAPIConfig().getApiType());
api.setApiName(requestContext.getMatchedAPI().getAPIConfig().getName());
api.setApiVersion(requestContext.getMatchedAPI().getAPIConfig().getVersion());
api.setApiCreatorTenantDomain(FilterUtils.getTenantDomainFromRequestURL(
requestContext.getMatchedAPI().getAPIConfig().getBasePath()) == null
? APIConstants.SUPER_TENANT_DOMAIN_NAME
: requestContext.getMatchedAPI().getAPIConfig().getBasePath());
String tenantDomain = FilterUtils.getTenantDomainFromRequestURL(
requestContext.getMatchedAPI().getAPIConfig().getBasePath());
api.setApiCreatorTenantDomain(
tenantDomain == null ? APIConstants.SUPER_TENANT_DOMAIN_NAME : tenantDomain);
api.setOrganizationId(requestContext.getMatchedAPI().getAPIConfig().getOrganizationId());
return api;
}
Expand Down

0 comments on commit 02834ba

Please sign in to comment.