diff --git a/.abacusai/config.json b/.abacusai/config.json index 8c27c51..3fd9c9f 100644 --- a/.abacusai/config.json +++ b/.abacusai/config.json @@ -27,6 +27,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)" ] }, diff --git a/src/server.ts b/src/server.ts index aa11eb6..f33d600 100644 --- a/src/server.ts +++ b/src/server.ts @@ -531,13 +531,11 @@ async function getProduct(asin: string) { return { product, observations, analyses, distributorResearch }; } -async function findLatestStalkerRunItemIdByAsin(asin: string): Promise { +async function findLatestRunItemIdByAsin(asin: string): Promise { const row = await pgGet<{ id: number }>( `SELECT ri.id FROM run_items ri - JOIN runs run ON run.id = ri.run_id WHERE ri.product_asin = ? - AND run.type = 'stalker' ORDER BY ri.id DESC LIMIT 1`, [asin], @@ -546,7 +544,7 @@ async function findLatestStalkerRunItemIdByAsin(asin: string): Promise