apify / apify-client-js

Apify API client for JavaScript / Node.js.
https://docs.apify.com/api/client/js
Apache License 2.0
65 stars 27 forks source link

Tasks options not working when call client.tasks().list(options) #547

Closed scrabase closed 5 months ago

scrabase commented 5 months ago

I have tried to set options as the following code but limit always 1,000 and offset always 0

const tasks = await apifyClient.tasks().list({ limit: 1, offset: 1, desc: true });

console.log(tasks) is look like this

{
  total: 4,
  count: 4,
  offset: 0,
  limit: 1000,
  desc: true,
  items: [
    {
       ...
    },
    ...
  ]
}

Am I missing something?

scrabase commented 5 months ago

Opps. it was my fault