Skip to content

Commit

Permalink
fix boolean handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 15, 2021
1 parent c80cf20 commit 3fa19e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/indexable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def query(query, options = {})
}
end
if options[:non_profit_status].present?
filter << { term: { non_profit_status: options[:non_profit_status] } }
filter << { term: { non_profit_status: options[:non_profit_status] == 1 } }
end
if options[:has_required_contacts].present?
filter << { term: { has_required_contacts: options[:has_required_contacts] } }
Expand Down

0 comments on commit 3fa19e6

Please sign in to comment.