mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-25 19:16:19 +00:00
chore: limpiar
This commit is contained in:
parent
26cb7b80e3
commit
9829d40ee9
1 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,7 @@ export const load: PageServerLoad = async ({ url }) => {
|
|||
const query = url.searchParams.get("q");
|
||||
let results: null | { ean: string; name: string; imageUrl: string }[] = null;
|
||||
if (query) {
|
||||
const sqlQuery = sql`select p.ean, p.name, p.image_url as imageUrl, p.fetched_at from precios_fts f
|
||||
const sqlQuery = 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}"`}
|
||||
group by p.ean
|
||||
|
@ -17,4 +17,3 @@ export const load: PageServerLoad = async ({ url }) => {
|
|||
|
||||
return { query, results };
|
||||
};
|
||||
// order by p.fetched_at
|
||||
|
|
Loading…
Reference in a new issue