Add offset pagination to trends in REST API (#17872)

This commit is contained in:
Eugen Rochko 2022-03-26 00:26:50 +01:00 committed by GitHub
parent f572a68a0c
commit e3a2203061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 75 additions and 5 deletions

View file

@ -37,7 +37,7 @@ class Trends::Query
end
def offset!(value)
@offset = value
@offset = value.to_i
self
end
@ -46,7 +46,7 @@ class Trends::Query
end
def limit!(value)
@limit = value
@limit = value.to_i
self
end