Skip to content

Commit

Permalink
whops 🙈
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuxu committed Aug 6, 2023
1 parent 938ee61 commit 26c092a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
6 changes: 6 additions & 0 deletions packages/notion-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @julianjark/notion-client

## 0.9.1

### Patch Changes

- whops

## 0.9.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/notion-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@julianjark/notion-client",
"version": "0.9.0",
"version": "0.9.1",
"description": "Helper client library Notion API",
"author": "Julian Jark",
"license": "ISC",
Expand Down
9 changes: 1 addition & 8 deletions packages/notion-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ export const getDatabasePages =
databaseId: string,
{ sorts, filter }: GetDatabasePagesOptions = {}
) => {
const response = await notion.databases.query({
database_id: databaseId,
sorts,
filter,
page_size: 100,
});

const results: Awaited<
ReturnType<typeof notion.databases.query>
>["results"] = [];
Expand All @@ -70,7 +63,7 @@ export const getDatabasePages =
cursor = response.next_cursor;
}

return response.results.filter(isPageObjectResponse);
return results.filter(isPageObjectResponse);
};

export const getPage = (notion: NotionClient) => async (pageId: string) => {
Expand Down
8 changes: 8 additions & 0 deletions packages/notion-cms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @julianjark/notion-cms

## 0.12.1

### Patch Changes

- whops
- Updated dependencies
- @julianjark/notion-client@0.9.1

## 0.12.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/notion-cms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@julianjark/notion-cms",
"version": "0.12.0",
"version": "0.12.1",
"description": "CMS abstraction for Notion",
"author": "Julian Jark",
"license": "ISC",
Expand Down

0 comments on commit 26c092a

Please sign in to comment.