     MailSent.create newSentMail, (err) ->
       if err? then return cb err
       sendwithus.api.send context, (err, result) ->
-        log.error "Error sending ladder update email: #{err} with result #{result}" if err
-        cb err
+        log.error "Error sending employer candidates available email: #{err} with result #{result}" if err
+        cb null
 
 employerNewCandidatesAvailableTask = ->
   #initialize featuredDate to job profile updated

  MailSent.create newSentMail, (err) ->
    if err? then return cb err
    sendwithus.api.send context, (err, result) ->
      log.error "Error sending ladder update email: #{err} with result #{result}" if err
      cb err
  
internalCandidateUpdateTask = ->
  mailTaskName = "internalCandidateUpdateTask"

    MailSent.create newSentMail, (err) ->
      if err? then return sendEmailCallback err
      sendwithus.api.send context, (err, result) ->
        log.error "Error sending candidate update reminder email: #{err} with result #{result}" if err
        sendEmailCallback null

generateWeekOffset = (originalDate, numberOfWeeks) ->
  return (new Date(originalDate.getTime() - numberOfWeeks * 7 * 24 * 60 * 60 * 1000)).toISOString()
