Skip to content

Commit

Permalink
Merge pull request #18 from catenax-ng/feature/mainBugFixes
Browse files Browse the repository at this point in the history
fix: main not passing backend build workflow
  • Loading branch information
carslen authored Sep 26, 2023
2 parents b3253a9 + d739018 commit de6f257
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ public FavoriteResponse updateFavorite(UUID id, FavoriteType type, FavoriteReque
entity.setType(FavoriteType.valueOf(favoriteRequest.getfType()));
favoriteRepository.saveAndFlush(entity);
return convertFavoriteResponse(entity);
} else throw new NotFoundException(
404,
"The capacity group provided was not found",
new ArrayList<>(List.of("UUID provided : " + UUID.fromString(favoriteRequest.getFavoriteId())))
);
} else {
throw new NotFoundException(
404,
"Entity to update was not found in DB." + "\n" + "Did you meant to create?",
new ArrayList<>(List.of("provided UUID did not match any records. - " + id))
);
}
}

@Override
Expand Down

0 comments on commit de6f257

Please sign in to comment.