diff --git a/src/main/java/uk/ac/ebi/eva/submission/controller/admin/AdminController.java b/src/main/java/uk/ac/ebi/eva/submission/controller/admin/AdminController.java index b874570..e38b76b 100644 --- a/src/main/java/uk/ac/ebi/eva/submission/controller/admin/AdminController.java +++ b/src/main/java/uk/ac/ebi/eva/submission/controller/admin/AdminController.java @@ -59,12 +59,8 @@ public ResponseEntity markSubmissionStatus(@PathVariable("submissionId") Stri }) @GetMapping("submissions/status/{status}") public ResponseEntity getSubmissionsbyStatus(@PathVariable("status") SubmissionStatus status) { - try { - ArrayList submissions = (ArrayList) submissionService.getSubmissionsByStatus(status); - return new ResponseEntity<>(stripUserDetails(submissions), HttpStatus.OK); - } catch (SubmissionDoesNotExistException ex) { - return new ResponseEntity<>(ex.getMessage(), HttpStatus.NOT_FOUND); - } + ArrayList submissions = (ArrayList) submissionService.getSubmissionsByStatus(status); + return new ResponseEntity<>(stripUserDetails(submissions), HttpStatus.OK); } @Operation(summary = "Given a submission id, this endpoint updates the processing status of the submission to the one provided",