From 1cc8c532427af0b57b11548d4b58b53f4f0671b6 Mon Sep 17 00:00:00 2001 From: HF Date: Sun, 3 Apr 2022 05:26:34 +0200 Subject: [PATCH] allow higher timeout on history fetch --- src/actions/fetch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/actions/fetch.js b/src/actions/fetch.js index 68fb38a..e29ee95 100644 --- a/src/actions/fetch.js +++ b/src/actions/fetch.js @@ -194,7 +194,9 @@ export async function requestHistoricalTimes(day, canvasId) { try { const date = dateToString(day); const url = `history?day=${date}&id=${canvasId}`; - const response = await fetchWithTimeout(url); + const response = await fetchWithTimeout(url, { + timeout: 45000, + }); if (response.status !== 200) { return []; }