mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-11 17:26:32 +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)) {
|
||||
const product = productMap.get(codein);
|
||||
if (product && change.after) {
|
||||
product.codeGamme = change.after as GammeCode;
|
||||
product.codeGammeInit = change.before as GammeCode | null;
|
||||
// codeGammeInit reste figé (valeur d'origine depuis ventesProduits)
|
||||
product.codeGamme = change.after as GammeCode;
|
||||
}
|
||||
}
|
||||
console.log(`[getProductRows] Gammes restaurées depuis snapshot`);
|
||||
|
||||
Reference in new issue
Block a user