Skip to content

Commit

Permalink
Fixing applicationMap is not updating when application owner change
Browse files Browse the repository at this point in the history
  • Loading branch information
HiranyaKavishani committed Mar 13, 2024
1 parent a1815eb commit c4c0594
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2977,6 +2977,16 @@ public boolean updateApplicationOwner(String userId, String organization, Applic
}

isAppUpdated = apiMgtDAO.updateApplicationOwner(userId, application);

if (isAppUpdated) {
String tenantDomain = APIUtil.getTenantDomainFromTenantId(tenantId);
ApplicationEvent applicationEvent = new ApplicationEvent(UUID.randomUUID().toString(),
System.currentTimeMillis(), APIConstants.EventType.APPLICATION_UPDATE.name(), tenantId,
tenantDomain, application.getId(), application.getUUID(), application.getName(),
application.getTokenType(), application.getTier(), application.getGroupId(),
application.getApplicationAttributes(), userId);
APIUtil.sendNotification(applicationEvent, APIConstants.NotifierType.APPLICATION.name());
}
return isAppUpdated;
}

Expand Down

0 comments on commit c4c0594

Please sign in to comment.