allow higher timeout on history fetch

This commit is contained in:
HF 2022-04-03 05:26:34 +02:00
parent 4d367d5232
commit 1cc8c53242
1 changed files with 3 additions and 1 deletions

View File

@ -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 [];
}