diff --git a/backend/coronavirus-visualizer-api/src/services/timeline_refresher.ts b/backend/coronavirus-visualizer-api/src/services/timeline_refresher.ts index 4f53455..1e6d2d8 100644 --- a/backend/coronavirus-visualizer-api/src/services/timeline_refresher.ts +++ b/backend/coronavirus-visualizer-api/src/services/timeline_refresher.ts @@ -16,6 +16,10 @@ export const refreshTimelinesJob = async () => { try { const response = await fetch(url); const body = await response.json(); + if (response.status != 200) { + console.log(body); + continue; + } const timeline = await VirusTimelineSchema.findOne({code: countries[key]}); if (timeline) {