Get destroy job working properly and prevent misfires on updated users
This commit is contained in:
parent
757d16919d
commit
cacb265829
2 changed files with 7 additions and 5 deletions
|
|
@ -33,8 +33,8 @@ class MailblusterManager
|
|||
})
|
||||
end
|
||||
|
||||
def self.delete_lead(user)
|
||||
email_hash = Digest::MD5.hexdigest user.email
|
||||
def self.delete_lead(email)
|
||||
email_hash = Digest::MD5.hexdigest email
|
||||
query_api(:delete, "/#{email_hash}")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue