Skip to content

Commit

Permalink
Correct in the group by as well
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Oct 1, 2024
1 parent c09791d commit e177991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/legacy_lib/query_supporters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def self.full_filter_expr(np_id, query)
rec_ps_subquery = Qx.select("nonprofit_payments.count", "nonprofit_payments.supporter_id")
.from(:nonprofit_payments)
.where("kind='RecurringDonation'")
.group_by("payments.supporter_id")
.group_by("nonprofit_payments.supporter_id")
.as(:rec_ps)
expr = expr.add_left_join(rec_ps_subquery, "rec_ps.supporter_id=supporters.id")
.and_where('rec_ps.count > 0')
Expand Down

0 comments on commit e177991

Please sign in to comment.