mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Put minimum candidates available before employer email
This commit is contained in:
parent
ab4424c7ac
commit
984be9980e
1 changed files with 2 additions and 0 deletions
|
@ -384,6 +384,8 @@ sendEmployerNewCandidatesAvailableEmail = (employer, cb) ->
|
|||
]
|
||||
User.count countParameters, (err, numberOfCandidatesSinceLogin) =>
|
||||
if err? then return cb err
|
||||
if numberOfCandidatesSinceLogin < 4
|
||||
return cb null
|
||||
context =
|
||||
email_id: "tem_CCcHKr95Nvu5bT7c7iHCtm"
|
||||
recipient:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue