Skip to content

Commit

Permalink
Update account sponsorship listing only if changes occur
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Nov 26, 2024
1 parent 1d6b2a3 commit 8afdf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def self.import_from_repos

logins.map(&:downcase).each do |login|
account = Account.find_or_create_by(login: login)
account.update(has_sponsors_listing: true)
account.update(has_sponsors_listing: true) if account.changed?
end
end

Expand Down

0 comments on commit 8afdf2a

Please sign in to comment.