mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 22:26:19 +00:00
search: poner cosas sin stock al final
This commit is contained in:
parent
3e4d91f330
commit
5754214498
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ 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);`;
|
having max(p.fetched_at)
|
||||||
|
order by p.in_stock desc;`;
|
||||||
results = db.all(sqlQuery);
|
results = db.all(sqlQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue