Skip to content

Commit

Permalink
feat(applications): better handling of synthetic apps when expand=false
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaslin committed Apr 5, 2017
1 parent cc12650 commit aac208d
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -131,7 +131,12 @@ class ApplicationService {
} catch (ExecutionException ee) {
throw ee.cause
}

if (expand == false) {
def cachedApplication = allApplicationsCache.get().find { name.equalsIgnoreCase(it.name as String) }
if (cachedApplication) {
applications.add(cachedApplication)
}
}
List<Map> mergedApps = mergeApps(applications, serviceConfiguration.getService('front50'))
return mergedApps ? mergedApps[0] : null
}
Expand Down

0 comments on commit aac208d

Please sign in to comment.