Skip to content

Commit

Permalink
Maintenance: Improve deletion of last reminder job for WhatsApp tickets.
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Schäfer <ts@zammad.com>
  • Loading branch information
fliebe92 and tschaefer committed Mar 20, 2024
1 parent 0628b78 commit bffba9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whatsapp/webhook/message.rb
Expand Up @@ -264,6 +264,6 @@ def cleanup_last_reminder_job
last_job_id = @ticket.preferences.dig(:whatsapp, :last_reminder_job_id)
return if last_job_id.nil?

::Delayed::Job.find(last_job_id).destroy!
::Delayed::Job.find_by(id: last_job_id)&.destroy!
end
end

0 comments on commit bffba9d

Please sign in to comment.