mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-11 17:26:32 +02:00
feat: add pg-ff-client to replace per-article HTTP requests with bulk SQL queries
This commit is contained in:
1 parent
659019e722
commit
5a506c750c
1 file changed
+1
-1
@@ -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>();
|
||||
|
||||
Reference in new issue
Block a user