[feat] moved search to components

This commit is contained in:
2026-02-17 13:42:00 -05:00
parent 85fbaf267f
commit 8918a040b6
2 changed files with 16 additions and 11 deletions

View File

@@ -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({