From bc84e26a832d6cc7773be903955c7bea6182db29 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 12 Jul 2024 22:10:06 +0800 Subject: [PATCH] fix: some highlighted markdown content not synced * The highlightedMarkdown was not yet uploaded when downloading so we should wait until the uploading to complete * Increase the download timeout to 10 mins --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index 8f1f1b0..5115b38 100644 --- a/src/api.ts +++ b/src/api.ts @@ -82,7 +82,7 @@ const fetchContentForItems = async ( item.content = await Promise.race([ downloadFromUrl(c.downloadUrl), new Promise( - (_, reject) => setTimeout(() => reject('Timeout'), 60_000), // 60 seconds + (_, reject) => setTimeout(() => reject('Timeout'), 600_000), // 10 minutes ), ]) }),