Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Antosha9108 committed Nov 22, 2023
1 parent f2f5635 commit 17fba55
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/(routes)/organizers/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import "@/app/globals.css";
import Wrapper from "@/components/layout/Wrapper";

Expand Down Expand Up @@ -34,5 +33,4 @@ export default async function Organizers() {
</ul>
</Wrapper>
);
}

}
5 changes: 2 additions & 3 deletions app/service/notion/NotionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ N/A
-->
---

## [1.1.4] - 2023-11-22



### Updated
- Debugging
---

## [1.1.3] - 2023-10-24

### Added
Expand Down

0 comments on commit 17fba55

Please sign in to comment.