Skip to content

Commit

Permalink
Only display accounts on homepage with at least one sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Nov 25, 2024
1 parent afab6e6 commit e7c63d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/accounts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class AccountsController < ApplicationController
def index
scope = Account.all.has_sponsors_profile.order('sponsors_count desc, updated_at DESC')
scope = Account.all.has_sponsors_profile.where('sponsors_count > 0').order('sponsors_count desc, updated_at DESC')
@pagy, @accounts = pagy(scope)
end

Expand Down

0 comments on commit e7c63d7

Please sign in to comment.