From f2f56350bf4cf7b1b463fcda7cfa77dd605c7119 Mon Sep 17 00:00:00 2001 From: Antosha9108 Date: Wed, 22 Nov 2023 16:56:50 -0500 Subject: [PATCH 1/2] test --- app/(routes)/organizers/page.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/(routes)/organizers/page.tsx b/app/(routes)/organizers/page.tsx index 53e2e36..f05a9e9 100644 --- a/app/(routes)/organizers/page.tsx +++ b/app/(routes)/organizers/page.tsx @@ -16,7 +16,7 @@ export default async function Organizers() { From 17fba55fcca724eabe5a40e437d6425707c4a535 Mon Sep 17 00:00:00 2001 From: Antosha9108 Date: Wed, 22 Nov 2023 17:52:43 -0500 Subject: [PATCH 2/2] debug --- app/(routes)/organizers/page.tsx | 4 +--- app/service/notion/NotionService.ts | 5 ++--- changelog.md | 8 ++++++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/(routes)/organizers/page.tsx b/app/(routes)/organizers/page.tsx index f05a9e9..c3bae17 100644 --- a/app/(routes)/organizers/page.tsx +++ b/app/(routes)/organizers/page.tsx @@ -1,4 +1,3 @@ - import "@/app/globals.css"; import Wrapper from "@/components/layout/Wrapper"; @@ -34,5 +33,4 @@ export default async function Organizers() { ); -} - +} \ No newline at end of file diff --git a/app/service/notion/NotionService.ts b/app/service/notion/NotionService.ts index 822f0f5..c7c42bd 100644 --- a/app/service/notion/NotionService.ts +++ b/app/service/notion/NotionService.ts @@ -4,16 +4,15 @@ const notion = new Client({ auth: process.env.NOTION_API_KEY }); // this function fetches data from The Notion Database(Table). const fetchDataFromNotion = async () => { - const databaseId = process.env.NOTION_API_DATABASE; + const databaseId = process.env.NOTION_API_DATABASE!; const response = await notion.databases.query({ database_id: databaseId }); // we map through the array of object to pull out the properties that we need for rendering. - const teamResults = response.results.map((page) => { + const teamResults = response.results.map((page: any) => { return { id: page.id, name: page.properties.Name.title[0]?.plain_text, role: page.properties.Role.multi_select[0].name, - // team: page.properties.Teams.rich_text[0]?.plain_text, imageUrl: page.properties.Image.files[0]?.file.url, linkedInUrl: page.properties.LinkedIn.rich_text[0]?.plain_text, notionId: page.properties.NotionId.rich_text[0]?.plain_text diff --git a/changelog.md b/changelog.md index 25f2449..4ca0f70 100644 --- a/changelog.md +++ b/changelog.md @@ -23,6 +23,14 @@ N/A --> --- +## [1.1.4] - 2023-11-22 + + + +### Updated +- Debugging +--- + ## [1.1.3] - 2023-10-24 ### Added