fix: correct ASIN query syntax and update script path in sellable analysis

This commit is contained in:
Victor Noguera
2026-05-25 13:55:04 -04:00
parent 517833413e
commit 5dbff33032
3 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
"Bash(bun run build:web 2>&1 || true)", "Bash(bun run build:web 2>&1 || true)",
"Bash(bun run build:web 2>&1 || true)", "Bash(bun run build:web 2>&1 || true)",
"Bash(bun run build:web 2>&1 || true)", "Bash(bun run build:web 2>&1 || true)",
"Bash(bun run build:web 2>&1 || true)",
"Bash(bun run build:web 2>&1 || true)" "Bash(bun run build:web 2>&1 || true)"
] ]
}, },

View File

@@ -143,7 +143,7 @@ async function loadInventoryRows(
WHERE inventory.run_id = ${stalkerRunId} WHERE inventory.run_id = ${stalkerRunId}
AND observation.can_sell = true AND observation.can_sell = true
AND observation.sellability_status = 'available' AND observation.sellability_status = 'available'
AND inventory.product_asin = ANY(${asins}) AND inventory.product_asin = ANY(ARRAY[${sql.join(asins.map((asin) => sql`${asin}`), sql`, `)}])
ORDER BY inventory.product_asin, observation.fetched_at DESC`, ORDER BY inventory.product_asin, observation.fetched_at DESC`,
); );
} }

View File

@@ -1476,7 +1476,7 @@ async function runSellableAnalysisChild(
const cmd = [ const cmd = [
"bun", "bun",
"run", "run",
"src/stalker-analyze.ts", "src/stalker/stalker-analyze.ts",
"--stalker-run-id", "--stalker-run-id",
String(stalkerRunId), String(stalkerRunId),
"--analysis-run-id", "--analysis-run-id",