Skip to content

Commit

Permalink
Merge pull request #2280 from sgayangi/analytics-update
Browse files Browse the repository at this point in the history
Update tenant domain for analytics
  • Loading branch information
Krishanx92 authored Apr 5, 2024
2 parents 1795c94 + 08fa8f9 commit 6919e65
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ public void handleSuccessRequest(RequestContext requestContext) {
requestContext.addMetadataToMap(MetadataConstants.API_TYPE_KEY, apiType);
requestContext.addMetadataToMap(MetadataConstants.IS_MOCK_API, String.valueOf(isMockAPI));

String tenantDomain = FilterUtils.getTenantDomainFromRequestURL(
requestContext.getMatchedAPI().getBasePath());
String tenantDomain = requestContext.getMatchedAPI().getOrganizationId();
requestContext.addMetadataToMap(MetadataConstants.API_CREATOR_TENANT_DOMAIN_KEY,
tenantDomain == null ? APIConstants.SUPER_TENANT_DOMAIN_NAME : tenantDomain);

Expand Down

0 comments on commit 6919e65

Please sign in to comment.