zammad/app/models/system_report/plugin/channel.rb
2026-01-02 15:41:09 +02:00

9 lines
331 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
class SystemReport::Plugin::Channel < SystemReport::Plugin
DESCRIPTION = __('Lists active channels (e.g. 1 Telegram channel, 2 Microsoft channels and 1 Google channel)').freeze
def fetch
::Channel.where(active: true).map(&:area).tally
end
end