Browse Source

Fix filtering for users who haven't been sent an initial confirmation email

MigrationEmailsFix
Rachael Booth 1 year ago
parent
commit
6692891941
  1. 2
      lib/tasks/full_import.rake

2
lib/tasks/full_import.rake

@ -63,7 +63,7 @@ namespace :import do
organisation = Organisation.find_by(name: row[0])
next unless organisation
users = User.where(organisation:, active: true, initial_confirmation_sent: false)
users = User.where(organisation:, active: true, initial_confirmation_sent: nil)
users.each { |user| ResendInvitationMailer.resend_invitation_email(user).deliver_later }
end

Loading…
Cancel
Save