Skip to content

Commit

Permalink
add await connection end
Browse files Browse the repository at this point in the history
  • Loading branch information
robertotcestari committed Sep 13, 2024
1 parent acdd6d6 commit 727a93b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/codante-apis/senator-expenses/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ async function updater() {

// update expenses
console.log('Scraping expenses...');
await scrapeExpenses(2024);
await scrapeExpenses(YEAR);

// update summaries
console.log('Updating party summary...');
await updatePartySummary(YEAR);
console.log('Updating UF summary...');
await updateUFSummary(YEAR);

connection.end();
await connection.end();
}

0 comments on commit 727a93b

Please sign in to comment.