File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1064,9 +1064,9 @@ defmodule Algora.Bounties do
10641064 where: lt . status == :succeeded ,
10651065 where: lt . user_id == ^ org_id
10661066
1067- rewarded_bounties_query = distinct ( rewards_query , :bounty_id )
1068- rewarded_tips_query = distinct ( rewards_query , :tip_id )
1069- rewarded_contracts_query = distinct ( rewards_query , :contract_id )
1067+ rewarded_bounties_query = rewards_query |> where ( [ t ] , not is_nil ( t . bounty_id ) ) |> distinct ( :bounty_id )
1068+ rewarded_tips_query = rewards_query |> where ( [ t ] , not is_nil ( t . tip_id ) ) |> distinct ( :tip_id )
1069+ rewarded_contracts_query = rewards_query |> where ( [ t ] , not is_nil ( t . contract_id ) ) |> distinct ( :contract_id )
10701070 rewarded_users_query = rewards_query |> distinct ( true ) |> select ( [ :user_id ] )
10711071
10721072 rewarded_users_diff_query =
You can’t perform that action at this time.
0 commit comments