Edit lead when user changes name
This commit is contained in:
parent
d6341ff932
commit
8c184d4f30
1 changed files with 1 additions and 2 deletions
|
|
@ -391,12 +391,11 @@ class User < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def mailbluster_update_email
|
def mailbluster_update_email
|
||||||
# FIXME: May fail if multiple saves occur in one commit
|
|
||||||
MailblusterEditLeadJob.perform_later(self, old_email: saved_changes['email'][0])
|
MailblusterEditLeadJob.perform_later(self, old_email: saved_changes['email'][0])
|
||||||
end
|
end
|
||||||
|
|
||||||
def mailbluster_update_name
|
def mailbluster_update_name
|
||||||
# TODO
|
MailblusterEditLeadJob.perform_later self
|
||||||
end
|
end
|
||||||
|
|
||||||
def touch_events
|
def touch_events
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue