Spaces:
Paused
Paused
Update handlers/search-catalog.js
Browse files5 unmodified lines678910111213141516175 unmodified lines// Validate the content typevalidateContentType(args)// Perform the search using searchCatalogconst items = await searchCatalog({search: args.extra.search,genre: args.extra.genre,skip: args.extra.skip,})// Return the catalog in the required formatreturn {5 unmodified lines678910111213141516171819205 unmodified lines// Validate the content typevalidateContentType(args)// 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 searchCatalogconst items = await searchCatalog(searchParams)// Return the catalog in the required formatreturn {
handlers/search-catalog.js+6-3