Skip to content

Commit

Permalink
Closes Taskana#2555 - Fix deleteClassification
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzheboka committed Apr 2, 2024
1 parent 6ddb86f commit a67dc52
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 @@ -191,7 +191,7 @@ public ResponseEntity<ClassificationRepresentationModel> updateClassification(
* @throws NotAuthorizedException if the user is not authorized to delete a Classification
*/
@DeleteMapping(path = RestEndpoints.URL_CLASSIFICATIONS_ID)
@Transactional(readOnly = true, rollbackFor = Exception.class)
@Transactional(rollbackFor = Exception.class)
public ResponseEntity<ClassificationRepresentationModel> deleteClassification(
@PathVariable String classificationId)
throws ClassificationNotFoundException, ClassificationInUseException, NotAuthorizedException {
Expand Down

0 comments on commit a67dc52

Please sign in to comment.