Skip to content

Commit e8c6cea

Browse files
Fix list_options GetStartEnd (#16303)
end is start + pageSize and not start + page
1 parent dea7a5c commit e8c6cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/list_options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (opts *ListOptions) setEnginePagination(e Engine) Engine {
4141
func (opts *ListOptions) GetStartEnd() (start, end int) {
4242
opts.setDefaultValues()
4343
start = (opts.Page - 1) * opts.PageSize
44-
end = start + opts.Page
44+
end = start + opts.PageSize
4545
return
4646
}
4747

0 commit comments

Comments
 (0)