Get destroy job working properly and prevent misfires on updated users

This commit is contained in:
CactusPuppy 2021-04-09 10:55:46 -07:00
parent 757d16919d
commit cacb265829
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
2 changed files with 7 additions and 5 deletions

View file

@ -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