Skip to content

Commit

Permalink
fix: added missing display name in mapper (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter authored Mar 5, 2024
1 parent 001d298 commit ec4c2c8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ default ProductsLoadResultDTOv1 map(ProductLoadResultWrapper wrapper) {
productNames.forEach(s -> {
ProductsAbstractDTOv1 dto = new ProductsAbstractDTOv1();
dto.setName(s);
var optional = wrapper.getProducts().stream().filter(
p -> p.getName().equals(s)).findFirst();
optional.ifPresent(product -> dto.setDisplayName(product.getDisplayName()));
dto.setMicrofrontends(
mapMfeList(wrapper.getMicrofrontends().stream().filter(mfe -> mfe.getProductName().equals(s)).toList()));
dto.setMicroservices(
Expand Down

0 comments on commit ec4c2c8

Please sign in to comment.