diff --git a/sitio/src/routes/search/+page.server.ts b/sitio/src/routes/search/+page.server.ts index 65f2783..7471f1e 100644 --- a/sitio/src/routes/search/+page.server.ts +++ b/sitio/src/routes/search/+page.server.ts @@ -11,7 +11,8 @@ export const load: PageServerLoad = async ({ url }) => { results = db.all( sql`select p.ean, p.name, p.image_url as imageUrl from precios_fts f join precios p on p.ean = f.ean - where f.name match ${query};`, + where f.name match ${query} + group by p.ean;`, ); }