mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Add additional log lines when configuring the Notion settings for a user in the callback
This commit is contained in:
parent
d23f7da8e3
commit
00a67e9524
1 changed files with 5 additions and 1 deletions
|
@ -69,8 +69,12 @@ async def notion_auth_callback(request: Request, background_tasks: BackgroundTas
|
||||||
|
|
||||||
final_response = response.json()
|
final_response = response.json()
|
||||||
|
|
||||||
|
logger.info(f"Notion auth callback response: {final_response}")
|
||||||
|
|
||||||
access_token = final_response.get("access_token")
|
access_token = final_response.get("access_token")
|
||||||
NotionConfig.objects.acreate(token=access_token, user=user)
|
notion_config = NotionConfig.objects.acreate(token=access_token, user=user)
|
||||||
|
|
||||||
|
logger.info(f"Notion config created: {notion_config}")
|
||||||
|
|
||||||
owner = final_response.get("owner")
|
owner = final_response.get("owner")
|
||||||
workspace_id = final_response.get("workspace_id")
|
workspace_id = final_response.get("workspace_id")
|
||||||
|
|
Loading…
Reference in a new issue