Skip to content

Commit

Permalink
Hotfix: Avoid weird scoping issue in Mail Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed Oct 16, 2024
1 parent 454824a commit 055c9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jobs/sync_mailing_lists_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ def perform
report_user_emails = User.delegate_reports_receivers_emails
GsuiteMailingLists.sync_group(DelegateReport::GLOBAL_MAILING_LIST, report_user_emails)

Continent.real.each do |continent|
Continent.uncached_real.each do |continent|
continent_list_address = DelegateReport.continent_mailing_list(continent)
report_user_emails = User.delegate_reports_receivers_emails(continent)

GsuiteMailingLists.sync_group(continent_list_address, report_user_emails | [DelegateReport::GLOBAL_MAILING_LIST])

continent.countries.real.each do |country|
continent.countries.uncached_real.each do |country|
country_list_address = DelegateReport.country_mailing_list(country, continent)
report_user_emails = User.delegate_reports_receivers_emails(country)

Expand Down

0 comments on commit 055c9d4

Please sign in to comment.