flat-dawn-22973
01/08/2024, 8:06 AMflat-dawn-22973
01/08/2024, 8:10 AMFetched ${response.length} records. Total fetched: ${allRecords.length}
);
offset += limit; // Increase the offset to fetch the next set of records
} else {
console.log('No more records to fetch or unexpected response:', response);
break; // Break the loop if no more records are available or an unexpected response is received
}
}
return allRecords; // Return the array of all fetched records
}flat-dawn-22973
01/08/2024, 8:11 AMflat-dawn-22973
01/08/2024, 8:12 AMflat-dawn-22973
01/09/2024, 7:18 AM