mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 18:45:48 -05:00
Merge pull request #1345 from codecombat/master
Minor fixes to email system
This commit is contained in:
commit
a8f4fc7951
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue