feat: implement pg-ff-client to replace HTTP per-article requests with bulk SQL queries

This commit is contained in:
Michael committed 2026-04-07 15:37:01 +02:00
1 parent 7bf42dfc01
commit a378bff7e2
1 file changed
+1
+1
View File
@@ -861,6 +861,7 @@ export async function pgGetStockNegatif(site?: string): Promise<PgStockNegatifRo
JOIN artfou1 af ON af.art_no_id = a.no_id AND af.preference = 1
JOIN fouident f ON f.code = af.code
WHERE cs.stockdispo < 0
AND cs.site IN ('292', '579')
${siteFilter}
ORDER BY cs.stockdispo ASC
`);