fix: correct ASIN query syntax and update script path in sellable analysis
This commit is contained in:
@@ -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`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user