fix the build :fired:
This commit is contained in:
parent
874b2a628d
commit
3db743640e
|
@ -14,7 +14,11 @@ module Jobs
|
|||
domains = group.automatic_membership_email_domains.gsub('.', '\.')
|
||||
|
||||
User.where("email ~* '@(#{domains})$'").find_each do |user|
|
||||
group.add(user) rescue ActiveRecord::RecordNotUnique, PG::UniqueViolation
|
||||
begin
|
||||
group.add(user)
|
||||
rescue ActiveRecord::RecordNotUnique, PG::UniqueViolation
|
||||
# we don't care about this
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue