# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

class TaskbarCleanupJob < ApplicationJob
  LAST_CONTACT_THRESHOLD = 1.day

  def perform
    Taskbar
      .where(app: :mobile, last_contact: ...LAST_CONTACT_THRESHOLD.ago)
      .destroy_all
  end
end
