lint code

Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2024-04-20 00:18:43 +02:00
parent c6ba8c791b
commit c698bfec8a
44 changed files with 180 additions and 177 deletions

View File

@@ -7,14 +7,14 @@ export default defineEventHandler(async (event) => {
with: {
bookmarkCategories: {
with: {
category: true
}
}
}
category: true,
},
},
},
})
return bookmarks.filter(bookmark =>
(category === 'all' || bookmark.bookmarkCategories.some(cat => cat.category.slug === category))
&& (favorite === 'false' || bookmark.favorite)
&& (favorite === 'false' || bookmark.favorite),
)
})