Merge pull request #1345 from codecombat/master

Minor fixes to email system
This commit is contained in:
Michael Schmatz 2014-07-17 09:29:18 -07:00
commit a8f4fc7951

View file

@ -42,7 +42,7 @@ candidateUpdateProfileTask = ->
lockDurationMs = 2 * 60 * 1000
currentDate = new Date()
timeRanges = []
for weekPair in [[4, 2,'two weeks'], [8, 4, 'four weeks'], [8, 52, 'eight weeks']]
for weekPair in [[4, 2,'two weeks'], [8, 4, 'four weeks'], [52, 8, 'eight weeks']]
timeRanges.push
start: generateWeekOffset currentDate, weekPair[0]
end: generateWeekOffset currentDate, weekPair[1]
@ -252,7 +252,7 @@ makeEmployerNamesEasilyAccessible = (allEmployers, cb) ->
employersEmailedDigestMoreThanWeekAgoFilter = (employer, cb) ->
if employer.emails?.employerNotes?.enabled is false
return sentEmailFilterCallback true
return cb true
findParameters =
"user": employer._id
"mailTask": @mailTaskName