mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-23 23:18:10 +02:00
feat: introduce getProductRows API to fetch, process, and score product data from multiple sources.
This commit is contained in:
1 parent
47e617afd3
commit
518838c01e
1 file changed
+2
-2
@@ -189,8 +189,8 @@ export async function getProductRows(input: GetProductRowsInput): Promise<Produc
|
|||||||
for (const [codein, change] of Object.entries(changes)) {
|
for (const [codein, change] of Object.entries(changes)) {
|
||||||
const product = productMap.get(codein);
|
const product = productMap.get(codein);
|
||||||
if (product && change.after) {
|
if (product && change.after) {
|
||||||
product.codeGamme = change.after as GammeCode;
|
// codeGammeInit reste figé (valeur d'origine depuis ventesProduits)
|
||||||
product.codeGammeInit = change.before as GammeCode | null;
|
product.codeGamme = change.after as GammeCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(`[getProductRows] Gammes restaurées depuis snapshot`);
|
console.log(`[getProductRows] Gammes restaurées depuis snapshot`);
|
||||||
|
|||||||
Reference in new issue
Block a user