fix: destroy bulk service (#5921)

This commit is contained in:
Tejaswini Chile
2022-11-25 22:46:50 +05:30
committed by GitHub
parent b05d06a28a
commit fc9fc5a661
6 changed files with 65 additions and 51 deletions

View File

@@ -46,7 +46,7 @@ class AccountUser < ApplicationRecord
end
def remove_user_from_account
::Agents::DestroyService.new(account: account, user: user).perform
::Agents::DestroyJob.perform_later(account, user)
end
private