From 9829d40ee9a7deb22abc64e51b4aae7c651eb326 Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 4 Jan 2024 22:52:53 -0300 Subject: [PATCH] chore: limpiar --- sitio/src/routes/search/+page.server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sitio/src/routes/search/+page.server.ts b/sitio/src/routes/search/+page.server.ts index e00b488..3b1811d 100644 --- a/sitio/src/routes/search/+page.server.ts +++ b/sitio/src/routes/search/+page.server.ts @@ -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