Skip to content

Commit

Permalink
feat: increase page number
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosp1011 committed Oct 25, 2024
1 parent 03ac7dd commit ea8db48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/wallet/backend/src/transaction/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class TransactionService implements ITransactionService {
return
}

const page = 1
let page = 1
const pageSize = 10
let shouldFetchNext = true
while (shouldFetchNext) {
Expand All @@ -153,6 +153,7 @@ export class TransactionService implements ITransactionService {
if (transactionsResponse.data.length > newTransactions.length) {
shouldFetchNext = false
}
page++;

const transactionsToSave: Partial<Transaction>[] = newTransactions.map(
(transaction) => ({
Expand Down

0 comments on commit ea8db48

Please sign in to comment.