Skip to content

Commit

Permalink
Update account_batch.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode authored Apr 2, 2024
1 parent 7c6ac42 commit 3b739d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/form/account_batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def approve_remote!

def approve_remote_domain!
domains = accounts.group_by(&:domain).pluck(0)
(domains - SpecifiedDomain.where(domain: domains).pluck(:domain)).each do |domain|
(domains - SpecifiedDomain.where(domain: domains, table: 0).pluck(:domain)).each do |domain|
SpecifiedDomain.create!(domain: domain, table: 0)
end

Expand Down

0 comments on commit 3b739d7

Please sign in to comment.