Skip to content

Commit

Permalink
Pagination issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sub-rat committed Dec 29, 2022
1 parent 4a07d79 commit 224959d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func Pagination(opts ...int) (int, int) {

if len(opts) >= 1 {
if opts[0] > 1 {
offset = opts[0] * limit
offset = (opts[0] - 1) * limit
}
}
return offset, limit
Expand Down

0 comments on commit 224959d

Please sign in to comment.