Updated

app/use_cases/accounts/apps/chatwoots / sync_chatwoot_worker.rb

A
12 lines of codes
1 methods
5.6 complexity/method
5 churn
5.57 complexity
0 duplications
class Accounts::Apps::Chatwoots::SyncChatwootWorker
  1. Accounts::Apps::Chatwoots::SyncChatwootWorker has no descriptive comment
include Sidekiq::Worker sidekiq_options queue: :chatwoot_webhooks def perform(account_id, chatwoot_id)
  1. Accounts::Apps::Chatwoots::SyncChatwootWorker#perform doesn't depend on instance state (maybe move it to another class?)
chatwoot = Apps::Chatwoot.find(chatwoot_id) account = Account.find(account_id) Accounts::Apps::Chatwoots::SyncImportContacts.new(chatwoot).call Accounts::Apps::Chatwoots::SyncExportContacts.call(account) end end