mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
added single contact process
This commit is contained in:
parent
7e6dee7f10
commit
66f3fca97a
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module Actions
|
|||
%i[regex mx].each do |m|
|
||||
result = Actions::SimpleMailValidator.run(email: contact.email, level: m)
|
||||
if result
|
||||
@contact.validate_email_by_regex_and_mx
|
||||
@contact.validate_email_by_regex_and_mx(single_email: true)
|
||||
@contact.remove_force_delete_for_valid_contact
|
||||
|
||||
next
|
||||
|
|
|
@ -26,7 +26,7 @@ module Actions
|
|||
%i[regex mx].each do |m|
|
||||
result = Actions::SimpleMailValidator.run(email: @new_attributes[:email], level: m)
|
||||
if result
|
||||
@contact.validate_email_by_regex_and_mx
|
||||
@contact.validate_email_by_regex_and_mx(single_email: true)
|
||||
@contact.remove_force_delete_for_valid_contact
|
||||
|
||||
next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue