Skip to content

Commit

Permalink
fix: pass cursor to list in w3 ls
Browse files Browse the repository at this point in the history
fixes #48

I added a test for this, but the issue doesn't happen in our current mock impl. I can spend some more time to make the mock implementation support `--size` and `--cursor` but it's not clear to me that's the right move yet - feels a little like adding extra code just to make a  test fail.
  • Loading branch information
travis committed Mar 1, 2023
1 parent a6f3b8d commit 8ba4cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function list (opts) {
let count = 0
let res
do {
res = await client.capability.upload.list()
res = await client.capability.upload.list({ cursor: res?.cursor })
count += res.results.length
if (res.results.length) {
if (opts.json) {
Expand Down

0 comments on commit 8ba4cc3

Please sign in to comment.