Skip to content

Commit

Permalink
fix: offset calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 6, 2024
1 parent b0d71e2 commit 889d935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports =
page = await paginate(offset)
++pageIndex
items = uniqBy(items.concat(page.items), 'VIN')
offset = items.length
offset = pageIndex * ITEMS_PER_PAGE
} while ((pageIndex !== 0 || page.items.length >= ITEMS_PER_PAGE) && page.items.length > 0)

debug.info({ inventory, ...opts, items: items.length, duration: duration() })
Expand Down

0 comments on commit 889d935

Please sign in to comment.