mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-10-02 11:25:28 +02:00
fix(experiment): patch ASIN matching bug where trailing whitespaces from excel files dropped matching records from analysis leading to zeroed metrics
This commit is contained in:
1 parent
79641b793a
commit
de1af7e0db
1 file changed
+1
-1
@@ -58,7 +58,7 @@ function aggregateWeeklyMetrics(
|
||||
const weeklyMap = new Map<string, WeeklyMetrics>();
|
||||
|
||||
for (const r of salesData) {
|
||||
const asin = (r.asin || '').toUpperCase();
|
||||
const asin = (r.asin || '').trim().toUpperCase();
|
||||
if (!asinSet.has(asin)) continue;
|
||||
|
||||
const mkt = (r.marketplace || (r as any).customer || '').toLowerCase();
|
||||
|
||||
Reference in new issue
Block a user