diff --git a/sitio/src/routes/+page.server.ts b/sitio/src/routes/+page.server.ts index f43feb5..2f44867 100644 --- a/sitio/src/routes/+page.server.ts +++ b/sitio/src/routes/+page.server.ts @@ -12,7 +12,7 @@ export const load: PageServerLoad = async ({ params }) => { }) .from(precios) .groupBy(precios.ean) - .having(sql`max(length(name)) and max(parser_version)`) + .having(sql`max(length(name)) and max(parser_version) and in_stock`) .orderBy(sql`random()`) .limit(150); const res = await q;