12345678910111213141516171819 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- module Service::Channel::Admin
- class Enable < Service::Base
- def initialize(area:, channel_id:)
- super()
- @area = area
- @channel_id = channel_id
- end
- def execute
- Channel
- .in_area(@area)
- .find(@channel_id)
- .update!(active: true)
- end
- end
- end
|