Skip to content

Commit c12cb4d

Browse files
committed
feat: remove the open status, it should be first time listed
1 parent 42e197a commit c12cb4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ports/catalog/queries.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ const getTradesJoin = () => {
562562
MAX(created_at) AS max_created_at,
563563
MAX(id::text) FILTER (WHERE status = 'open' and type = 'public_item_order') AS open_item_trade_id,
564564
MAX(amount_received) FILTER (WHERE status = 'open' and type = 'public_item_order') AS open_item_trade_price,
565-
MIN(created_at) FILTER (WHERE status = 'open' and type = 'public_item_order') AS item_first_listed_at,
565+
MIN(created_at) FILTER (WHERE type = 'public_item_order') AS item_first_listed_at,
566566
json_agg(assets) AS aggregated_assets -- Aggregate the assets into a JSON array
567567
FROM unified_trades
568568
WHERE status = 'open'

0 commit comments

Comments
 (0)