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)",
|
"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}
|
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`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user