Skip to content

Commit

Permalink
Fix donation display off by 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sipec authored and SirSaltyy committed Jul 2, 2024
1 parent dc4c269 commit 0109c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/supabase/txns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ or replace function get_donations_by_charity () returns table (
) as $$
select to_id as charity_id,
count(distinct from_id) as num_supporters,
sum(case when (data->'token')::text = 'M$'
sum(case when data->>'token' = 'M$'
then amount / 100
else amount / 1000 end
) as total
Expand Down

0 comments on commit 0109c62

Please sign in to comment.