We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dea7a5c commit e8c6ceaCopy full SHA for e8c6cea
models/list_options.go
@@ -41,7 +41,7 @@ func (opts *ListOptions) setEnginePagination(e Engine) Engine {
41
func (opts *ListOptions) GetStartEnd() (start, end int) {
42
opts.setDefaultValues()
43
start = (opts.Page - 1) * opts.PageSize
44
- end = start + opts.Page
+ end = start + opts.PageSize
45
return
46
}
47
0 commit comments