Skip to content

Commit

Permalink
get real scope
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranja committed Feb 6, 2025
1 parent d9cbe6e commit 00e44f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/export_emails.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00e44f0

Please sign in to comment.