feat: introduce getProductRows API to fetch, process, and score product data from multiple sources.

This commit is contained in:
Michael committed 2026-03-18 18:11:08 +01:00
1 parent 47e617afd3
commit 518838c01e
1 file changed
+2 -2
+2 -2
View File
@@ -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`);