Put minimum candidates available before employer email

This commit is contained in:
Michael Schmatz 2014-07-21 08:32:44 -07:00
parent ab4424c7ac
commit 984be9980e

View file

@ -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: