Add prototype of FD lifting interaction

This commit is contained in:
Alex Sherman 2021-04-06 09:20:43 +05:00
parent 90cb154d15
commit 6383dede4b
2 changed files with 36 additions and 3 deletions

View file

@ -42,9 +42,11 @@ class EmailAddressVerification < ApplicationRecord
end
def check_force_delete
return unless failed?
Domains::ForceDeleteEmail::Base.run(email: email)
if failed?
Domains::ForceDeleteEmail::Base.run(email: email)
else
Domains::ForceDeleteLift::Base.run(email: email)
end
end
def verify