mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
10 lines
328 B
Ruby
10 lines
328 B
Ruby
class CleanupExpiredEmailVerificationRequestsJob < ApplicationJob
|
|
queue_as :interval_10s
|
|
|
|
def perform
|
|
# Soft delete all expired and non-deleted verification requests in a single query
|
|
EmailVerificationRequest.expired.where(deleted_at: nil)
|
|
.update_all(deleted_at: Time.current)
|
|
end
|
|
end
|