From 055c9d437f2133e2ba0ab8c4845a6254352c9367 Mon Sep 17 00:00:00 2001 From: Gregor Billing <gbilling@worldcubeassociation.org> Date: Wed, 16 Oct 2024 22:46:48 +0900 Subject: [PATCH] Hotfix: Avoid weird scoping issue in Mail Sync --- app/jobs/sync_mailing_lists_job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/sync_mailing_lists_job.rb b/app/jobs/sync_mailing_lists_job.rb index c050c66efd..6243d06a3d 100644 --- a/app/jobs/sync_mailing_lists_job.rb +++ b/app/jobs/sync_mailing_lists_job.rb @@ -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)