fixed a method name
This commit is contained in:
parent
1b6ffc22ae
commit
1a7057ba05
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue