We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189a0ba commit ace2366Copy full SHA for ace2366
1 file changed
app/jobs/cleanup_expired_invitation_logs_job.rb
@@ -2,6 +2,6 @@ class CleanupExpiredInvitationLogsJob < ApplicationJob
2
queue_as :default
3
4
def perform
5
- InvitationLog.where('expires_at < ?', Time.current).destroy_all
+ InvitationLog.destroy_by(expires_at: ..Time.current)
6
end
7
0 commit comments