Skip to content

Commit

Permalink
changed error returned limit to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Mar 6, 2024
1 parent 25f6033 commit a9d48dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import (
)

func GetPaginationParams(r *http.Request) (int, int, string, string, string) {

// there are cases when the request is not passed in
if r == nil {
return 0, -1, "updated", "asc", ""
return 0, 1, "updated", "asc", ""
}

keys := r.URL.Query()
Expand Down

0 comments on commit a9d48dc

Please sign in to comment.