Spaces:
Paused
Paused
Update handlers/search-catalog.js
Browse files5 unmodified lines67891091011121314141516171819205 unmodified lines // Validate the content type validateContentType(args)
// Perform the search using searchCatalog const items = await searchCatalog({ // Adjust search query parameters and ensure we don't pass an invalid 'license' const searchParams = { search: args.extra.search, genre: args.extra.genre, skip: args.extra.skip, }) }
// Perform the search using searchCatalog const items = await searchCatalog(searchParams)
// Return the catalog in the required format return {handlers/search-catalog.js+6-3