From ea8db48497a85217708cd41bf2dd32629a5fd63f Mon Sep 17 00:00:00 2001 From: dragosp1011 Date: Fri, 25 Oct 2024 17:21:36 +0200 Subject: [PATCH] feat: increase page number --- packages/wallet/backend/src/transaction/service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/wallet/backend/src/transaction/service.ts b/packages/wallet/backend/src/transaction/service.ts index 30e24ab03..0b0f763c1 100644 --- a/packages/wallet/backend/src/transaction/service.ts +++ b/packages/wallet/backend/src/transaction/service.ts @@ -130,7 +130,7 @@ export class TransactionService implements ITransactionService { return } - const page = 1 + let page = 1 const pageSize = 10 let shouldFetchNext = true while (shouldFetchNext) { @@ -153,6 +153,7 @@ export class TransactionService implements ITransactionService { if (transactionsResponse.data.length > newTransactions.length) { shouldFetchNext = false } + page++; const transactionsToSave: Partial[] = newTransactions.map( (transaction) => ({