Skip to content

Commit

Permalink
fix: server api search handler (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
Renan Grativol committed Sep 25, 2023
1 parent e15364a commit 5073f42
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 5073f42

Please sign in to comment.