Skip to content

Commit

Permalink
Route to config_page, not to deprecated notion_config_page, on notion…
Browse files Browse the repository at this point in the history
… callback API
  • Loading branch information
sabaimran committed Sep 12, 2024
1 parent b61d825 commit 5038d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/khoj/routers/notion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)

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.
background_tasks.add_task(run_in_executor, configure_content, {}, False, SearchType.Notion, user)
Expand Down

0 comments on commit 5038d15

Please sign in to comment.