FIX: Delete unconfirmed AND expired email tokens only (#15089)

FIX: Delete unconfirmed AND expired email tokens only (#15089)

diff --git a/app/jobs/scheduled/clean_up_email_tokens.rb b/app/jobs/scheduled/clean_up_email_tokens.rb
index 006c5db..0781115 100644
--- a/app/jobs/scheduled/clean_up_email_tokens.rb
+++ b/app/jobs/scheduled/clean_up_email_tokens.rb
@@ -6,7 +6,7 @@ module Jobs
 
     def execute(args)
       EmailToken
-        .where('NOT confirmed OR expired')
+        .where('NOT confirmed AND expired')
         .where('created_at < ?', 1.month.ago)
         .delete_all
     end

GitHub sha: 6e2d4a14acbbfed14c833254893a8bb27fd3eec4

This commit appears in #15089 which was approved by nbianca. It was merged by udan11.