Skip to content

Commit 367bba3

Browse files
committed
Add clan downloading database error handling
1 parent 0637172 commit 367bba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/download-clan-stats.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ if (require.main === module) (async () => {
201201
' ',
202202
),
203203
);
204-
if (DATABASE_URL) await insertNewClanStats(data, now);
204+
if (DATABASE_URL) await insertNewClanStats(data, now).catch(err => console.error('Database Error:', err));
205205
break;
206206
}
207207
}

0 commit comments

Comments
 (0)