Skip to content
Snippets Groups Projects
Commit 47984640 authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'OZG-5044-PostfachKonfigurationInSpringCloudConfig' (#36)...

Merge pull request 'OZG-5044-PostfachKonfigurationInSpringCloudConfig' (#36) from OZG-5044-PostfachKonfigurationInSpringCloudConfig into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/administration/pulls/36


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents dbc11c96 2979f24c
Branches
Tags
No related merge requests found
......@@ -26,6 +26,6 @@ class SettingService {
PostfachSettingBody getSettingWithPostfachFromDb() {
var postfach = repository.findOneByName(POSTFACH_SETTING_ITEM_NAME);
return postfach.map(Setting::getSettingBody).map(PostfachSettingBody.class::cast).orElse(PostfachSettingBody.builder().build());
return postfach.isPresent() ? (PostfachSettingBody) postfach.get().getSettingBody() : PostfachSettingBody.builder().build();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment