Finished spec, added FIXME for caveat in email change

This commit is contained in:
Ziyi 2021-03-25 17:30:43 -07:00 committed by CactusPuppy
parent efdf1f03df
commit 43911c4a38
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -385,6 +385,7 @@ 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: email_before_last_save) MailblusterEditLeadJob.perform_later(self, old_email: email_before_last_save)
end end