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

This commit is contained in:
Michael committed 2026-04-03 07:19:45 +02:00
1 parent 659019e722
commit 5a506c750c
1 file changed
+1 -1
+1 -1
View File
@@ -760,7 +760,7 @@ export async function pgGetStockForCodeins(codeins: string[]): Promise<Map<strin
cs.stockdispo::float AS stockdispo
FROM cube_stock cs
JOIN articles a ON a.no_id = cs.artnoid
WHERE a.codein = ANY(${codeins})
WHERE a.codein = ANY(${codeins}::text[])
`);
const map = new Map<string, StockBySite>();