mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix web
This commit is contained in:
parent
58708a507e
commit
906b6c1ea5
3 changed files with 2 additions and 7 deletions
|
|
@ -366,7 +366,7 @@ export class NotionClient implements IntegrationClient {
|
|||
}
|
||||
|
||||
// create the page
|
||||
return this.createPage(notionPage)
|
||||
return await this.createPage(notionPage)
|
||||
} catch (error) {
|
||||
logger.error(error)
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -744,7 +744,7 @@ export const findRecentLibraryItems = async (
|
|||
'library_item.user_id = :userId AND library_item.state = :state',
|
||||
{ userId, state: LibraryItemState.Succeeded }
|
||||
)
|
||||
.orderBy('library_item.saved_at', 'DESC', 'NULLS LAST')
|
||||
.orderBy('library_item.savedAt', 'DESC', 'NULLS LAST')
|
||||
.take(limit)
|
||||
.skip(offset)
|
||||
.getMany(),
|
||||
|
|
|
|||
|
|
@ -102,11 +102,6 @@ export default function Notion(): JSX.Element {
|
|||
return
|
||||
}
|
||||
|
||||
if (!notion.settings?.parentPageId) {
|
||||
messageApi.error('Please set the Notion page id first.')
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
const task = await exportToIntegrationMutation(notion.id)
|
||||
// long polling to check the status of the task in every 10 seconds
|
||||
|
|
|
|||
Loading…
Reference in a new issue