Skip to content

Commit

Permalink
Update tenant domain for analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sgayangi committed Apr 5, 2024
1 parent 2ed9c16 commit 08fa8f9
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 08fa8f9

Please sign in to comment.