fix: correct ASIN query syntax and update script path in sellable analysis
This commit is contained in:
@@ -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)"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -143,7 +143,7 @@ async function loadInventoryRows(
|
||||
WHERE inventory.run_id = ${stalkerRunId}
|
||||
AND observation.can_sell = true
|
||||
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`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1476,7 +1476,7 @@ async function runSellableAnalysisChild(
|
||||
const cmd = [
|
||||
"bun",
|
||||
"run",
|
||||
"src/stalker-analyze.ts",
|
||||
"src/stalker/stalker-analyze.ts",
|
||||
"--stalker-run-id",
|
||||
String(stalkerRunId),
|
||||
"--analysis-run-id",
|
||||
|
||||
Reference in New Issue
Block a user