Skip to content

Commit

Permalink
fix: server api search handler
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrativol committed Sep 21, 2023
1 parent e15364a commit 8371e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/search.ts
Expand Up @@ -22,7 +22,7 @@ export default defineEventHandler(async (event) => {
// Only use `.md` files which are not drafts and has content
return doc?._extension === 'md' &&
doc?._draft === false &&
doc?._empty === false
!doc?._empty
}
)
.map(
Expand Down

0 comments on commit 8371e3b

Please sign in to comment.