mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-29 13:06:19 +00:00
no filtrar productos por stock
This commit is contained in:
parent
23ea94ecd5
commit
4f135f8464
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export const load: PageServerLoad = async ({ url }) => {
|
||||||
join precios p on p.ean = f.ean
|
join precios p on p.ean = f.ean
|
||||||
where f.name match ${`"${query}"`}
|
where f.name match ${`"${query}"`}
|
||||||
group by p.ean
|
group by p.ean
|
||||||
having max(p.fetched_at) and max(p.in_stock)
|
having max(p.fetched_at)
|
||||||
order by p.in_stock desc;`;
|
order by p.in_stock desc;`;
|
||||||
results = db.all(sqlQuery);
|
results = db.all(sqlQuery);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue