eventbrite-sdk-ruby icon indicating copy to clipboard operation
eventbrite-sdk-ruby copied to clipboard

[BUG] EventbriteSDK::Event.retrieve(id: EVENT_ID).attendees.page_count returns wrong page count

Open h0jeZvgoxFepBQ2C opened this issue 5 years ago • 1 comments

I just realized that following command returns 1, instead of the real total pages count:

EventbriteSDK::Event.retrieve(id: EVENT_ID).attendees.page_count
=> 1

whereas it should be higher?

When I query then following, it works (since there are more than 1 pages)

 EventbriteSDK::Event.retrieve(id: EVENT_ID).attendees.page(3).to_a.count
=> ... success ...

Could you please confirm and fix this, if this is really a bug?

h0jeZvgoxFepBQ2C avatar Oct 02 '20 10:10 h0jeZvgoxFepBQ2C

@jeff-eb Could you take a look at this maybe?

h0jeZvgoxFepBQ2C avatar Oct 05 '20 13:10 h0jeZvgoxFepBQ2C