Update trial request hipchat msg

Link to trial-requests approval page.
This commit is contained in:
Matt Lott 2015-06-05 11:27:53 -07:00
parent b0c6b50062
commit e46613bf7f

View file

@ -29,7 +29,7 @@ TrialRequestSchema.pre 'save', (next) ->
TrialRequestSchema.post 'save', (doc) ->
if doc.get('status') is 'submitted'
msg = "http://codecombat.com/admin/trial-requests #{doc.get('type')} request submitted by #{doc.get('properties').email}"
msg = "<a href=\"http://codecombat.com/admin/trial-requests\">Trial Request</a> submitted by #{doc.get('properties').email}"
hipchat.sendHipChatMessage msg, ['tower']
else if doc.get('status') is 'approved'
ppc = doc.get('prepaidCode')