Skip to content

Commit

Permalink
[#330] removed deleting account owner from UffizziCore::Migrations::A…
Browse files Browse the repository at this point in the history
…ccountService.remove_draft_accounts
  • Loading branch information
Aleksey Stepanov committed Dec 5, 2022
1 parent c07e98e commit 80f0c7a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/app/services/uffizzi_core/migrations/account_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
class UffizziCore::Migrations::AccountService
class << self
def remove_draft_accounts
UffizziCore::Account.where(state: 'draft').find_each do |account|
account.owner.destroy
account.destroy
end
UffizziCore::Account.where(state: 'draft').find_each(&:destroy)
end
end
end

0 comments on commit 80f0c7a

Please sign in to comment.