Skip to content

Commit

Permalink
Update src/routes/api/entries.json.ts
Browse files Browse the repository at this point in the history
Co-authored-by: mat <[email protected]>
  • Loading branch information
selectdev and mat-1 authored Jul 7, 2022
1 parent 1ffc71d commit 54e5f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/api/entries.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const get: RequestHandler = async req => {
const showVisible = req.url.searchParams.get('visible') !== 'false'
const showUnlisted = req.url.searchParams.get('unlisted') === 'true'
const showHidden = req.url.searchParams.get('hidden') === 'true'
const tags = req.url.searchParams.get('tags')?.split(',')
const tags = req.url.searchParams.get('tags')?.split(',')?.map(tag => tag.trim())?.filter(tag => tag.length > 0)
const query = req.url.searchParams.get('query')

const user = req.locals.user ? await fetchUser({ id: req.locals.user.id }) : null
Expand Down

0 comments on commit 54e5f5e

Please sign in to comment.