From d5408c359b9c03db2ad4ec0cc61ed25ed20128fd Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Sun, 4 Feb 2024 12:55:47 +0200 Subject: [PATCH] added try catch to haifa --- src/GameSource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GameSource.ts b/src/GameSource.ts index 93dec07..535e144 100644 --- a/src/GameSource.ts +++ b/src/GameSource.ts @@ -9,7 +9,7 @@ import moment from "moment"; // require export default class GameSource { async getGamesFromHaifa(): Promise { - const sourceUrl = `http://mhaifafc.com/games?lang=en`; + const sourceUrl = `https://mhaifafc.com/games?lang=en`; console.log('Trying to get games from Haifa...'); try { const result = await axios.get(sourceUrl);