You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/prisonerAlerts/PAPaginatedAlerts.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ data class PAPaginatedAlerts(
22
22
totalCount =this.totalElements,
23
23
isLastPage =this.last,
24
24
count =this.numberOfElements,
25
-
page =this.number,
25
+
page =this.number+1, // Alerts API pagination is 0 based
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/gateways/prisonerAlerts/GetAlertsForPrisonerTest.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ class GetAlertsForPrisonerTest(
35
35
val prisonerNumber = "zyx987"
36
36
val page = 1
37
37
val size = 10
38
-
val path = "/prisoners/$prisonerNumber/alerts?page=$page&size=$size"
38
+
val path = "/prisoners/$prisonerNumber/alerts?page=${page-1}&size=$size"
0 commit comments