juntar por ean busqueda

fixes #11
This commit is contained in:
Cat /dev/Nulo 2024-01-02 10:34:43 -03:00
parent 47f566cd82
commit 5c52a12fdf

View file

@ -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;`,
);
}