Update HoC survey mail end date to a string

This commit is contained in:
Matt Lott 2015-12-08 15:23:35 -08:00
parent 8269113efc
commit 745b905813

View file

@ -49,7 +49,7 @@ TrialRequestSchema.post 'save', (doc) ->
address: doc.get('properties')?.email
email_id: sendwithus.templates.teacher_free_trial_hoc
email_data:
endDate: endDate
endDate: endDate.toDateString()
sendwithus.api.send emailParams, (err, result) =>
log.error "sendwithus trial request approved error: #{err}, result: #{result}" if err