Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ddl/views/v_usdc_purchases.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SELECT
LIMIT 1
)
END,
0
sp.amount -- no price_history match -> treat full amount as base price (extra_amount = 0)
),
0
) AS extra_amount,
Expand Down
2 changes: 1 addition & 1 deletion sql/01_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9644,7 +9644,7 @@ CREATE VIEW public.v_usdc_purchases AS
WHERE ((aph.playlist_id = sp.content_id) AND (aph.block_timestamp <= sp.created_at))
ORDER BY aph.block_timestamp DESC
LIMIT 1)
END, (0)::bigint)), (0)::bigint) AS extra_amount,
END, sp.amount)), (0)::bigint) AS extra_amount,
(sp.access_type)::public.usdc_purchase_access_type AS access,
sp.city,
sp.region,
Expand Down
Loading