2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-31 15:25:17 +02:00
|
|
|
class AdminUpdateDefaultZonesJob < ApplicationJob
|
|
|
|
def perform(admin)
|
|
|
|
tchap_hs = APITchap::HsAdapter.new(admin.email).to_hs
|
|
|
|
admin.default_zones << Zone.default_for(tchap_hs)
|
|
|
|
end
|
|
|
|
end
|