Skip to content

Commit fa8a3b7

Browse files
fix: omitempty next
1 parent 5b52945 commit fa8a3b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pagination/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type CursorRequest struct {
2121
type PaginationResponse struct {
2222
NumPages int `json:"numPages"`
2323
ResultArray []int `json:"resultArray"`
24-
Next *string `json:"next"`
24+
Next *string `json:"next,omitempty"`
2525
}
2626

2727
const total = 20

0 commit comments

Comments
 (0)