Skip to content

Commit

Permalink
update env names
Browse files Browse the repository at this point in the history
  • Loading branch information
ivwv committed Apr 10, 2024
1 parent 5e35921 commit 4a27f42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ async function fetchDataAndSaveToDB(page) {

if (page < endPage) {
await fetchDataAndSaveToDB(page + 1);
} else if (page === endPage) {
console.log("Reached the end page. Exiting the program.");
process.exit(0); // 退出程序,参数 0 表示正常退出
}
} catch (error) {
if (error.response && error.response.status === 429) {
Expand Down

0 comments on commit 4a27f42

Please sign in to comment.