|
|
@@ -25,9 +25,7 @@ func getQualifiedRewardFunds() []RewardFund { |
|
|
|
"reward_funds.memo", |
|
|
|
"reward_funds.price", |
|
|
|
"reward_funds.amount_available", |
|
|
|
"reward_funds.min_contribution", |
|
|
|
"reward_funds.title", |
|
|
|
"reward_funds.description"). |
|
|
|
"reward_funds.min_contribution"). |
|
|
|
Joins("left outer join queue_orders qo on reward_funds.id = qo.reward_fund_id"). |
|
|
|
Where("qo.reward_fund_id is null"). |
|
|
|
Scan(&standalone) |
|
|
@@ -52,9 +50,7 @@ func getQualifiedRewardFunds() []RewardFund { |
|
|
|
"reward_funds.memo", |
|
|
|
"reward_funds.price", |
|
|
|
"reward_funds.amount_available", |
|
|
|
"reward_funds.min_contribution", |
|
|
|
"reward_funds.title", |
|
|
|
"reward_funds.description"). |
|
|
|
"reward_funds.min_contribution"). |
|
|
|
Joins("inner join queue_orders qo on reward_funds.id = qo.reward_fund_id"). |
|
|
|
Joins("left join contributions c on reward_funds.id = c.reward_fund_id"). |
|
|
|
Joins("inner join (?) tt on reward_funds.id = tt.reward_fund_id", |
|
|
|