Updated

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

A
10 lines of codes
1 methods
3.7 complexity/method
2 churn
3.74 complexity
0 duplications
class Accounts::Apps::Chatwoots::Delete
  1. Accounts::Apps::Chatwoots::Delete has no descriptive comment
def self.call(account, chatwoot) if chatwoot.destroy Accounts::Apps::Chatwoots::RemoveChatwootIdFromContactsWorker.perform_async(account.id) { ok: 'Chatwoot was successfully destroyed.' } else { error: chatwoot } end end end