Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into feature/962-notification-model-up…
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
ds-mwesener committed Jun 18, 2024
2 parents 341d14b + 39e3f18 commit b9abe45
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ public Notification startNotification(StartNotification startNotification) {
}

private void createMessages(StartNotification startNotification, BPN applicationBPN, Notification notification, AssetAsBuiltRepository assetAsBuiltRepository) {
Map<String, List<AssetBase>> assetsAsBuiltBPNMap = assetAsBuiltRepository.getAssetsById(startNotification.getAffectedPartIds()).stream().collect(groupingBy(AssetBase::getManufacturerId));
assetsAsBuiltBPNMap
Map<String, List<AssetBase>> assetsAsBuiltBPNMap =
assetAsBuiltRepository
.getAssetsById(startNotification.getAffectedPartIds())
.stream()
.filter(asset -> Objects.nonNull(asset.getManufacturerId()))
.collect(groupingBy(AssetBase::getManufacturerId)); assetsAsBuiltBPNMap
.entrySet()
.stream()
.map(it -> {
Expand Down

0 comments on commit b9abe45

Please sign in to comment.