mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-26 03:26:19 +00:00
parent
5c52a12fdf
commit
21439a5da5
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export const load: PageServerLoad = async ({ params }) => {
|
||||||
})
|
})
|
||||||
.from(precios)
|
.from(precios)
|
||||||
.groupBy(precios.ean)
|
.groupBy(precios.ean)
|
||||||
.having(sql`max(length(name))`)
|
.having(sql`max(length(name)) and max(parser_version)`)
|
||||||
.orderBy(sql`random()`)
|
.orderBy(sql`random()`)
|
||||||
.limit(150);
|
.limit(150);
|
||||||
const res = await q;
|
const res = await q;
|
||||||
|
|
Loading…
Reference in a new issue