mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Remove submitted trial request hipchat msgs
This commit is contained in:
parent
4a04a48f42
commit
7f280a1b56
1 changed files with 1 additions and 4 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue