Skip to content

Commit

Permalink
Total coins SQL fix (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-myles authored Jul 17, 2024
1 parent a0de9f9 commit 894a891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bookkeeper/storage/select_total_coins.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ WITH
WHERE kyc_step_passed >= %[3]v
AND (kyc_step_blocked = 0 OR kyc_step_blocked >= %[3]v + 1)
GROUP BY id
HAVING max(created_at) < date_sub('%[5]v', INTERVAL 1 day))) t, req_dates WHERE t.created_at < req_dates.req_date
HAVING max(created_at) < '%[5]v')) t, req_dates WHERE t.created_at < req_dates.req_date
),
valid_users AS (
select * from (SELECT active_users.* FROM active_users UNION ALL SELECT valid_users_stopped_processing.* FROM valid_users_stopped_processing) t LIMIT 1 BY id, created_at
Expand Down

0 comments on commit 894a891

Please sign in to comment.