chore(): updated let to const
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user