chore(): updated let to const

This commit is contained in:
JJ-Cro
2025-01-15 11:03:15 +01:00
parent 1802effbdc
commit a0048880a1

View File

@@ -10,7 +10,7 @@ const client = new RestClientV5({
}); });
async function getAllUniversalTransfers() { async function getAllUniversalTransfers() {
let allTransfers: UniversalTransferRecordV5[] = []; const allTransfers: UniversalTransferRecordV5[] = [];
let nextCursor = ''; let nextCursor = '';
let pages = 0; let pages = 0;
@@ -23,7 +23,7 @@ async function getAllUniversalTransfers() {
}); });
if (response.result.list && response.result.list.length > 0) { if (response.result.list && response.result.list.length > 0) {
allTransfers = [...allTransfers, ...response.result.list]; allTransfers.push(...response.result.list);
} }
nextCursor = response.result.nextPageCursor; nextCursor = response.result.nextPageCursor;