Skip to content

Commit

Permalink
Closes #2555 - Fix deleteClassification
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzheboka authored and Jörg Heffner committed Aug 8, 2024
1 parent 6d578bf commit 95abc13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public void deleteClassification(String classificationId)
if (isReferentialIntegrityConstraintViolation(e)) {
throw new ClassificationInUseException(classification, e);
}
throw e;
}
} finally {
taskanaEngine.returnConnection();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public ResponseEntity<ClassificationRepresentationModel> updateClassification(
content = {@Content(schema = @Schema())})
})
@DeleteMapping(path = RestEndpoints.URL_CLASSIFICATIONS_ID)
@Transactional(readOnly = true, rollbackFor = Exception.class)
@Transactional(rollbackFor = Exception.class)
public ResponseEntity<ClassificationRepresentationModel> deleteClassification(
@PathVariable("classificationId") String classificationId)
throws ClassificationNotFoundException, ClassificationInUseException, NotAuthorizedException {
Expand Down

0 comments on commit 95abc13

Please sign in to comment.