Edit lead when user changes name

This commit is contained in:
Ziyi 2021-03-31 21:34:55 -07:00 committed by CactusPuppy
parent d6341ff932
commit 8c184d4f30
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -391,12 +391,11 @@ class User < ApplicationRecord
end
def mailbluster_update_email
# FIXME: May fail if multiple saves occur in one commit
MailblusterEditLeadJob.perform_later(self, old_email: saved_changes['email'][0])
end
def mailbluster_update_name
# TODO
MailblusterEditLeadJob.perform_later self
end
def touch_events