This commit is contained in:
Hongbo Wu 2024-04-04 18:53:10 +08:00
parent 58708a507e
commit 906b6c1ea5
3 changed files with 2 additions and 7 deletions

View file

@ -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

View file

@ -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(),

View file

@ -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