Skip to content

Commit

Permalink
made lower bound as 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vsumit89 committed Jul 7, 2022
1 parent d4812e7 commit 6f44423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paginationx/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func Parse(query url.Values) (int, int) {
offset := 0 // no. of records to skip
limit := 20 // limit

if perPage > 20 && perPage <= 100 {
if perPage > 0 && perPage <= 100 {
limit = perPage
}

Expand Down

0 comments on commit 6f44423

Please sign in to comment.