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) =>
|
User.count countParameters, (err, numberOfCandidatesSinceLogin) =>
|
||||||
if err? then return cb err
|
if err? then return cb err
|
||||||
|
if numberOfCandidatesSinceLogin < 4
|
||||||
|
return cb null
|
||||||
context =
|
context =
|
||||||
email_id: "tem_CCcHKr95Nvu5bT7c7iHCtm"
|
email_id: "tem_CCcHKr95Nvu5bT7c7iHCtm"
|
||||||
recipient:
|
recipient:
|
||||||
|
|
Reference in a new issue