mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-02 17:03:42 -04:00
Added task text and candidate name to task emails
This commit is contained in:
parent
ac7e663418
commit
37b8790b58
1 changed files with 23 additions and 19 deletions
|
@ -478,12 +478,16 @@ taskReminderAlreadySentThisWeekFilter = (task, cb) ->
|
|||
sendUserRemarkTaskEmail = (task, cb) ->
|
||||
mailTaskName = @mailTaskName
|
||||
User.findOne("_id":task.contact).select("email").lean().exec (err, contact) ->
|
||||
if err? then return cb err
|
||||
User.findOne("_id":task.user).select("jobProfile.name").lean().exec (err, user) ->
|
||||
if err? then return cb err
|
||||
context =
|
||||
email_id: "tem_aryDjyw6JmEmbKtCMTSwAM"
|
||||
recipient:
|
||||
address: contact.email
|
||||
email_data:
|
||||
task_text: task.action
|
||||
candidate_name: user.jobProfile?.name ? "(Name not listed in job profile)"
|
||||
candidate_link: "http://codecombat.com/account/profile/#{task.user}"
|
||||
due_date: task.date
|
||||
log.info "Sending recruitment task reminder to #{contact.email}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue