Skip to content

Commit

Permalink
Merge branch 'main' into feature/DCMFOSS-59
Browse files Browse the repository at this point in the history
  • Loading branch information
Bailonis authored Sep 28, 2023
2 parents 6da2d4d + 861f313 commit 75c4062
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 39 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,
"Demand category not found",
new ArrayList<>(List.of("provided UUID did not match any records. - " + id))
);

}

@Override
Expand Down
Loading

0 comments on commit 75c4062

Please sign in to comment.