FIX: Delete unconfirmed AND expired email tokens only (#15089)
This commit is contained in:
parent
fa8cd629f1
commit
6e2d4a14ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue