diff --git a/src/main/java/org/tkit/onecx/theme/rs/internal/controllers/ImageRestController.java b/src/main/java/org/tkit/onecx/theme/rs/internal/controllers/ImageRestController.java index e14dc18..0316273 100644 --- a/src/main/java/org/tkit/onecx/theme/rs/internal/controllers/ImageRestController.java +++ b/src/main/java/org/tkit/onecx/theme/rs/internal/controllers/ImageRestController.java @@ -92,11 +92,8 @@ public Response uploadImage(Integer contentLength, String refId, RefTypeDTO refT @Override public Response deleteImagesById(String refId) { - try { - imageDAO.deleteQueryByRefId(refId); - } catch (Exception e) { - return Response.status(Response.Status.BAD_REQUEST).build(); - } + + imageDAO.deleteQueryByRefId(refId); return Response.status(Response.Status.NO_CONTENT).build(); }