We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42e197a commit c12cb4dCopy full SHA for c12cb4d
src/ports/catalog/queries.ts
@@ -562,7 +562,7 @@ const getTradesJoin = () => {
562
MAX(created_at) AS max_created_at,
563
MAX(id::text) FILTER (WHERE status = 'open' and type = 'public_item_order') AS open_item_trade_id,
564
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,
+ MIN(created_at) FILTER (WHERE type = 'public_item_order') AS item_first_listed_at,
566
json_agg(assets) AS aggregated_assets -- Aggregate the assets into a JSON array
567
FROM unified_trades
568
WHERE status = 'open'
0 commit comments