mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fix some missed sendwithus changes
This commit is contained in:
parent
fcb2ce8504
commit
08bc32e005
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue