From 00e44f048970109beede535e76e12ae5014375e3 Mon Sep 17 00:00:00 2001 From: Tyranja Date: Thu, 6 Feb 2025 19:52:35 +0100 Subject: [PATCH] get real scope --- lib/tasks/export_emails.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/export_emails.rake b/lib/tasks/export_emails.rake index 17bf6c130..8e76d5501 100644 --- a/lib/tasks/export_emails.rake +++ b/lib/tasks/export_emails.rake @@ -8,7 +8,7 @@ namespace :export do # Write the header row csv << ["Firstname", "Lastname", "Email Address"] - Profile.not_exported.not_published.find_each do |profile| + Profile.not_exported.is_published.find_each do |profile| csv << [profile.firstname, profile.lastname, profile.email] profile.update_column(:exported_at, Time.current) end