We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd44422 commit 3575224Copy full SHA for 3575224
1 file changed
src/main/java/edu/tamu/app/controller/NoteController.java
@@ -80,13 +80,7 @@ public ApiResponse remove(@ApiValidatedModel Note note) {
80
@ApiMapping("/page")
81
@Auth(role = "ROLE_ANONYMOUS")
82
public ApiResponse page(@ApiData FilteredPageRequest filteredPageRequest) {
83
- try {
84
- System.out.println("\n" + objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(filteredPageRequest) + "\n");
85
- } catch (JsonProcessingException e) {
86
- e.printStackTrace();
87
- }
88
- Page<Note> notes = noteRepo.findAll(filteredPageRequest.toPageRequest());
89
- return new ApiResponse(SUCCESS, notes);
+ return new ApiResponse(SUCCESS, noteRepo.findAll(filteredPageRequest.toPageRequest()));
90
}
91
92
0 commit comments