mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-26 03:26:19 +00:00
parent
47f566cd82
commit
5c52a12fdf
1 changed files with 2 additions and 1 deletions
|
@ -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;`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue