Skip to content

Commit

Permalink
feat: add isPublished filter
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 28, 2024
1 parent 4f7ec85 commit 3cbf0d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions libs/zhi-siyuan-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zhi-siyuan-api

## 2.18.1

### Patch Changes

- fix: add getRecentPostsCount isPublished filter

## 2.18.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-siyuan-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-siyuan-api",
"version": "2.18.0",
"version": "2.18.1",
"type": "module",
"description": "a siyuan-note api including both kernel and client",
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions libs/zhi-siyuan-api/src/lib/adaptor/siYuanApiAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class SiYuanApiAdaptor extends BlogApi {
return usersBlogs
}

public override async getRecentPostsCount(keyword?: string): Promise<number> {
return await this.siyuanKernelApi.getRootBlocksCount(keyword ?? "")
public override async getRecentPostsCount(keyword?: string, isPublished?: boolean): Promise<number> {
return await this.siyuanKernelApi.getRootBlocksCount(keyword ?? "", isPublished)
}

public override async getRecentPosts(
Expand Down

0 comments on commit 3cbf0d5

Please sign in to comment.