From d36c937765475baed56694aea26890231bb17217 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 4 Mar 2024 17:49:59 +0800 Subject: [PATCH] fix redirect_uri error --- packages/api/src/services/integrations/notion.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api/src/services/integrations/notion.ts b/packages/api/src/services/integrations/notion.ts index 8e8cedcad..fd46dc1bb 100644 --- a/packages/api/src/services/integrations/notion.ts +++ b/packages/api/src/services/integrations/notion.ts @@ -4,7 +4,7 @@ import { logger } from '../../utils/logger' import { IntegrationClient } from './integration' export class NotionClient implements IntegrationClient { - name = 'notion' + name = 'NOTION' apiUrl = 'https://api.notion.com/v1' headers = { 'Content-Type': 'application/json', @@ -24,6 +24,7 @@ export class NotionClient implements IntegrationClient { { grant_type: 'authorization_code', code, + redirect_uri: `${env.client.url}/settings/integrations`, }, { headers: {