diff --git a/lib/tasks/full_import.rake b/lib/tasks/full_import.rake index 9d2ec11d3..a0e1350bb 100644 --- a/lib/tasks/full_import.rake +++ b/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