Skip to content
Snippets Groups Projects
Commit dec664a5 authored by ko_oler's avatar ko_oler
Browse files

revert pagination.go

parent 59fcc49b
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ func (b *BatchProcessor) getBatch(ctx context.Context) ([]*Item, bool, error) {
Regular: b.FindPublishedOptions.Regular,
Hidden: b.FindPublishedOptions.Hidden,
Templates: b.FindPublishedOptions.Templates,
FindOptions: *options.NewFindOptions(b.offset, b.limit, b.sort...),
FindOptions: *options.NewFindOptions(b.pageNum, b.pageSize, b.sort...),
},
)
} else {
......@@ -55,7 +55,7 @@ func (b *BatchProcessor) getBatch(ctx context.Context) ([]*Item, bool, error) {
Regular: b.FindOptions.Regular,
Hidden: b.FindOptions.Hidden,
Templates: b.FindOptions.Templates,
FindOptions: *options.NewFindOptions(b.offset, b.limit, b.sort...),
FindOptions: *options.NewFindOptions(b.pageNum, b.pageSize, b.sort...),
},
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment