Fix some missed sendwithus changes

This commit is contained in:
phoenixeliot 2016-06-06 16:38:20 -07:00
parent fcb2ce8504
commit 08bc32e005
2 changed files with 3 additions and 3 deletions

View file

@ -457,9 +457,9 @@ UserHandler = class UserHandler extends Handler
# Type-specific email data
if type is 'subscribe modal parent'
emailParams['email_id'] = sendwithus.templates.parent_subscribe_email
emailParams['email_id'] = sendwithus.templates.parent_subscribe_email.id
else if type is 'share progress modal parent'
emailParams['email_id'] = sendwithus.templates.share_progress_email
emailParams['email_id'] = sendwithus.templates.share_progress_email.id
sendMail emailParams

View file

@ -272,7 +272,7 @@ UserSchema.methods.register = (done) ->
{ welcome_email_student, welcome_email_user } = sendwithus.templates
timestamp = (new Date).getTime()
data =
email_id: if @isStudent() then welcome_email_student else welcome_email_user
email_id: if @isStudent() then welcome_email_student.id else welcome_email_user.id
recipient:
address: @get('email')
name: @broadName()