message: Refactor and fix forgotten variable renaming in webhook call
diff: @@ -115,6 +115,9 @@ exports.solve = function (challenge, isRestore) {
  }))
  logger.info(colors.green('Solved') + ' challenge ' + colors.cyan(solvedChallenge.name) + ' (' + solvedChallenge.description + ')')
  self.sendNotification(solvedChallenge, isRestore)
  + if (process.env.SOLUTIONS_WEBHOOK && !isRestore) {
  + webhook.notify(solvedChallenge)
  + }
  })
  }
  @@ -135,10 +138,6 @@ exports.sendNotification = function (challenge, isRestore) {
  if (global.io && (isRestore || !wasPreviouslyShown)) {
  global.io.emit('challenge solved', notification)
  }
  -
  - if (process.env.WEBHOOK_URL && !isRestore && !wasPreviouslyShown) {
  - webhook.notify(challenge)
  - }
  }
  }
  