From 3b739d7718322ef75ec742e739778d70cedeb130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Tue, 2 Apr 2024 17:50:22 +0900 Subject: [PATCH] Update account_batch.rb --- app/models/form/account_batch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/form/account_batch.rb b/app/models/form/account_batch.rb index a3d911a0ef0924..5b7d6569e2efc1 100644 --- a/app/models/form/account_batch.rb +++ b/app/models/form/account_batch.rb @@ -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