Route to config_page, not to deprecated notion_config_page, on notion callback API

This commit is contained in:
sabaimran
2024-09-11 18:30:09 -07:00
parent b61d825cbc
commit 5038d15574

View File

@@ -77,7 +77,7 @@ async def notion_auth_callback(request: Request, background_tasks: BackgroundTas
f"Notion integration. Owner: {owner}, Workspace ID: {workspace_id}, Workspace Name: {workspace_name}, Bot ID: {bot_id}" f"Notion integration. Owner: {owner}, Workspace ID: {workspace_id}, Workspace Name: {workspace_name}, Bot ID: {bot_id}"
) )
notion_redirect = str(request.app.url_path_for("notion_config_page")) notion_redirect = str(request.app.url_path_for("config_page"))
# Trigger an async job to configure_content. Let it run without blocking the response. # Trigger an async job to configure_content. Let it run without blocking the response.
background_tasks.add_task(run_in_executor, configure_content, {}, False, SearchType.Notion, user) background_tasks.add_task(run_in_executor, configure_content, {}, False, SearchType.Notion, user)