A platform for community discussion. Free, open, simple.
FIX: Delete unconfirmed AND expired email tokens only (#15089)
Dan Ungureanu6e2d4a14acbb
diff --git a/app/jobs/scheduled/clean_up_email_tokens.rb b/app/jobs/scheduled/clean_up_email_tokens.rbindex 006c5dbf026..0781115fd89 100644--- a/app/jobs/scheduled/clean_up_email_tokens.rb+++ b/app/jobs/scheduled/clean_up_email_tokens.rb@@ -6,7 +6,7 @@ module Jobsdef execute(args)EmailToken- .where('NOT confirmed OR expired')+ .where('NOT confirmed AND expired').where('created_at < ?', 1.month.ago).delete_allend