mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 22:13:32 -04:00
Have no emails send to employers who haven't logged in
This commit is contained in:
parent
e4d4c973da
commit
0561235da2
1 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,8 @@ makeEmployerNamesEasilyAccessible = (allEmployers, cb) ->
|
|||
employersEmailedDigestMoreThanWeekAgoFilter = (employer, cb) ->
|
||||
if employer.emails?.employerNotes?.enabled is false
|
||||
return cb true
|
||||
if not employer.signedEmployerAgreement and not employer.activity?.login?
|
||||
return cb true
|
||||
findParameters =
|
||||
"user": employer._id
|
||||
"mailTask": @mailTaskName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue