From 66928919411fadf2814feafa0d5b22890dc4f415 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Thu, 27 Jul 2023 12:01:12 +0100 Subject: [PATCH] Fix filtering for users who haven't been sent an initial confirmation email --- lib/tasks/full_import.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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