Ejemplo n.º 1
0
  handler: function(request, reply) {
    var ruleId = request.params.id;
    var promise = db.removeRule(ruleId)
    .tap(function() { autoModerator.removeRule(ruleId); })
    .error(request.errorMap.toHttpError);

    return reply(promise);
  }
Ejemplo n.º 2
0
 .tap(function() { autoModerator.removeRule(ruleId); })