Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
manustars authored Oct 7, 2024
1 parent 1b4a14e commit 890c715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ async function fetchAllMiningRigs() {
let totalPages = 1; // Inizializza a 1 per entrare nel ciclo

while (currentPage < totalPages) {
console.log(`Fetching rigs from page ${currentPage} with size 25`);
console.log(`Fetching rigs from page ${currentPage} with size 50`);

const rawResponse = await nhClient.getMiningRigs(currentPage, 25);
const rawResponse = await nhClient.getMiningRigs(currentPage, 50);
const data = rawResponse.data;

// Controlla se la risposta ha rig e pagination
Expand Down

0 comments on commit 890c715

Please sign in to comment.