Skip to content

Commit 0f004f0

Browse files
committed
added EVANS notification location, safer page request
1 parent f586911 commit 0f004f0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/edu/tamu/app/enums/NotificationLocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
public enum NotificationLocation {
44

5-
MAIN, CUSHING, MSL, WCL, PSEL, QATAR;
5+
MAIN, EVANS, CUSHING, MSL, WCL, PSEL, QATAR;
66

77
}

src/main/java/edu/tamu/app/model/request/FilteredPageRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public NoteSpecification<Note> getSpecification() {
3434

3535
@JsonIgnore
3636
public PageRequest getPageRequest() {
37-
return new PageRequest(pageNumber - 1, pageSize, new Sort(Sort.Direction.fromString(direction), properties));
37+
return new PageRequest(pageNumber > 0 ? pageNumber - 1 : 0, pageSize > 0 ? pageSize : 10, new Sort(Sort.Direction.fromString(direction), properties));
3838
}
3939

4040
public int getPageNumber() {

0 commit comments

Comments
 (0)