diff --git a/app/(routes)/organizers/page.tsx b/app/(routes)/organizers/page.tsx index 53e2e36..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"; @@ -16,7 +15,7 @@ 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