diff --git a/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/controllers/ProjectController.java b/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/controllers/ProjectController.java index 115a0b348..2cc36725a 100644 --- a/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/controllers/ProjectController.java +++ b/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/controllers/ProjectController.java @@ -58,8 +58,7 @@ public ResponseEntity> getAllProjects() { ResponseEntity> response; try { - CollectionModel allProjects = projectService.getAllProjects(); - response = ok(allProjects); + response = ok(projectService.getAllProjects()); } catch (ServiceException e) { response = internalServerError(); log.error(" ### Error while fetching Projects", e);