fixed a method name

This commit is contained in:
Michele Artini 2024-10-16 14:40:32 +02:00
parent 1b6ffc22ae
commit 1a7057ba05
1 changed files with 68 additions and 68 deletions

View File

@ -89,7 +89,7 @@ public class ContextApiController extends AbstractExporterController {
@RequestParam(required = false, defaultValue = "false") final boolean all) throws CommunityException {
try {
return communityService.getSubCommunities(contextId)
return communityService.getSubCommunitiesForCommunity(contextId)
.stream()
.filter(sc -> all || sc.isClaim())
.map(sc -> {
@ -194,7 +194,7 @@ public class ContextApiController extends AbstractExporterController {
}
private List<SubCommunity> findSubCommunities(final String prefix, final boolean all, final String contextId) throws CommunityException {
return communityService.getSubCommunities(contextId)
return communityService.getSubCommunitiesForCommunity(contextId)
.stream()
.filter(sc -> all || sc.isClaim())
.filter(sc -> sc.getSubCommunityId().startsWith(prefix))