Skip to content

Commit

Permalink
chore: cherry-pick for themes pr to master
Browse files Browse the repository at this point in the history
  • Loading branch information
abhvsn committed Aug 15, 2024
2 parents 0bec00f + 860fb9e commit c5c466e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ private Mono<Boolean> archiveTheme(List<String> themeIds) {
}

private Mono<List<Theme>> updateTheme(List<Theme> themes) {
return themeRepository.bulkUpdate(themes).thenReturn(themes);
return Flux.fromIterable(themes)
.flatMap(themeToBeUpdated -> {
return themeRepository.updateById(
themeToBeUpdated.getId(), themeToBeUpdated, AclPermission.MANAGE_THEMES);
})
.collectList();
}

private Mono<Application> updateApplication(Application application) {
Expand Down

0 comments on commit c5c466e

Please sign in to comment.