allow higher timeout on history fetch

This commit is contained in:
HF 2022-04-03 05:26:34 +02:00
parent 4d367d5232
commit 1cc8c53242

View File

@ -194,7 +194,9 @@ export async function requestHistoricalTimes(day, canvasId) {
try { try {
const date = dateToString(day); const date = dateToString(day);
const url = `history?day=${date}&id=${canvasId}`; const url = `history?day=${date}&id=${canvasId}`;
const response = await fetchWithTimeout(url); const response = await fetchWithTimeout(url, {
timeout: 45000,
});
if (response.status !== 200) { if (response.status !== 200) {
return []; return [];
} }