class Internal::PanNotificationsController < Internal::Controller
  skip_before_action :require_admin!

  def create
    ids = params.key?(:ids) ? params[:ids] : []
    ids = ids.to_unsafe_h.values if ids.to_unsafe_h.is_a?(Hash)
    Notification::PanJob.perform_async(ids)

    render_success :ok
  end
end
