diff --git a/packages/api/src/services/integrations/notion.ts b/packages/api/src/services/integrations/notion.ts index 150ec881e..f391456f3 100644 --- a/packages/api/src/services/integrations/notion.ts +++ b/packages/api/src/services/integrations/notion.ts @@ -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 diff --git a/packages/api/src/services/library_item.ts b/packages/api/src/services/library_item.ts index fb8ae9c4f..9adcde7b0 100644 --- a/packages/api/src/services/library_item.ts +++ b/packages/api/src/services/library_item.ts @@ -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(), diff --git a/packages/web/pages/settings/integrations/notion.tsx b/packages/web/pages/settings/integrations/notion.tsx index 1ce4f32d2..db15ec21c 100644 --- a/packages/web/pages/settings/integrations/notion.tsx +++ b/packages/web/pages/settings/integrations/notion.tsx @@ -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