diff --git a/src/api.ts b/src/api.ts index 47f47ff..2eefe77 100644 --- a/src/api.ts +++ b/src/api.ts @@ -77,7 +77,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 ), ]) }) diff --git a/src/index.ts b/src/index.ts index d9787e2..7d9beac 100644 --- a/src/index.ts +++ b/src/index.ts @@ -465,8 +465,7 @@ const fetchOmnivore = async (inBackground = false) => { await logseq.Editor.deletePage(pageName) continue } - } - else { + } else { targetBlockId = await getOmnivoreBlockIdentity(pageName, blockTitle) const existingBlock = await getBlockByContent( diff --git a/src/util.ts b/src/util.ts index ea39770..5fc55dc 100644 --- a/src/util.ts +++ b/src/util.ts @@ -3,7 +3,7 @@ import { diff_match_patch } from 'diff-match-patch' import { DateTime } from 'luxon' import escape from 'markdown-escape' import outOfCharacter from 'out-of-character' -import { Highlight } from './api' +import { Highlight } from '@omnivore-app/api' export interface HighlightPoint { left: number