Skip to content

Commit

Permalink
analytics fix: errors for tenant are not shown properly
Browse files Browse the repository at this point in the history
  • Loading branch information
VirajSalaka committed Apr 23, 2021
1 parent ab255b9 commit e64af96
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 e64af96

Please sign in to comment.