[feat] moved search to components
This commit is contained in:
@@ -12,7 +12,7 @@ const searchResults = await client.collections('cards').documents().search({
|
||||
query_by: 'productLineName,productName,setName,number,rarityName',
|
||||
per_page: 250,
|
||||
});
|
||||
const productIds = searchResults.hits?.map(hit => hit.document.productId) ?? [];
|
||||
const productIds = searchResults.hits?.map((hit: any) => hit.document.productId) ?? [];
|
||||
|
||||
// get pokemon data with prices and set info using searchResults and then query the database for each card to get the prices and set info
|
||||
const pokemon = await db.query.cards.findMany({
|
||||
|
||||
Reference in New Issue
Block a user