From 5073f424126cfcf83da7ced29fdd1f8f14999b68 Mon Sep 17 00:00:00 2001 From: Renan Grativol Date: Tue, 26 Sep 2023 00:12:33 +0900 Subject: [PATCH] fix: server api search handler (#979) --- server/api/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/search.ts b/server/api/search.ts index fff2deec6..39bb47e4f 100644 --- a/server/api/search.ts +++ b/server/api/search.ts @@ -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(