Skip to content

Commit

Permalink
Fix InstallService
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiLandiak committed Nov 27, 2024
1 parent 1e3a688 commit c7b35a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void performInstall() {

// systemDataLoaderService.createSysAdmin();
systemDataLoaderService.createDefaultTenantProfiles();
systemDataLoaderService.createAdminSettings();
// systemDataLoaderService.createAdminSettings();
systemDataLoaderService.createRandomJwtSettings();
systemDataLoaderService.loadSystemWidgets();
// systemDataLoaderService.createOAuth2Templates();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public ListenableFuture<Void> processResourceMsgFromCloud(TenantId tenantId, Res
}

private Pair<Boolean, TbResourceId> renamePreviousResource(TenantId tenantId, TbResourceId tbResourceId, ResourceType resourceType, String resourceKey) {
PageDataIterable<TbResource> resourcesIterable = new PageDataIterable<>(
link -> resourceService.findTenantResourcesByResourceTypeAndPageLink(tenantId, resourceType, link), 1024);
PageDataIterable<TbResource> resourcesIterable = new PageDataIterable<>(link -> resourceService.findTenantResourcesByResourceTypeAndPageLink(tenantId, resourceType, link), 1024);
for (TbResource tbResource : resourcesIterable) {
if (tbResource.getResourceKey().equals(resourceKey) && !tbResourceId.equals(tbResource.getId())) {
tbResource.setResourceKey(StringUtils.randomAlphanumeric(15) + resourceKey);
Expand Down

0 comments on commit c7b35a8

Please sign in to comment.