Remove submitted trial request hipchat msgs

This commit is contained in:
Matt Lott 2015-12-10 11:21:02 -08:00
parent 4a04a48f42
commit 7f280a1b56

View file

@ -38,10 +38,7 @@ TrialRequestSchema.pre 'save', (next) ->
next()
TrialRequestSchema.post 'save', (doc) ->
if doc.get('status') is 'submitted'
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'
if doc.get('status') is 'approved'
endDate = new Date()
endDate.setUTCMonth(endDate.getUTCMonth() + 2)
emailParams =