mirror of
https://github.com/discourse/discourse.git
synced 2026-08-16 16:05:10 -05:00
FIX: Delete unconfirmed AND expired email tokens only (#15089)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user