Skip to content

Commit 5cf288d

Browse files
author
Stephann
authored
Fix pagy config
Pagy expects `limit` option instead of `items`.
1 parent 6366e5b commit 5cf288d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/typesense/pagination/pagy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def self.create(results, total_hits, options = {})
1010
vars = {
1111
count: total_hits,
1212
page: options[:page],
13-
items: options[:per_page]
13+
limit: options[:per_page]
1414
}
1515

1616
pagy_version = Gem::Version.new(::Pagy::VERSION)

0 commit comments

Comments
 (0)