RUBYCRITIC
class Accounts::Apps::Chatwoots::Delete - 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