Skip to content

Commit

Permalink
Add nonprofit cte
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Sep 25, 2024
1 parent 2f8a1a3 commit 749eeae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/legacy_lib/query_supporters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def self.full_filter_expr(np_id, query)
tags_subquery = build_tag_query(np_id)

expr = Qx.select('supporters.id')
.with(:nonprofits, Qx.select("*").from(:nonprofits).where("id = $id", id: np_id.to_i))
.from(:supporters)
.join('nonprofits', 'nonprofits.id=supporters.nonprofit_id')
.where(
Expand Down

0 comments on commit 749eeae

Please sign in to comment.