Permalink
Browse files

Change call to non-existent function cb to next.

  • Loading branch information...
1 parent afc0356 commit 4f7bd7ef8a4bce365556abb4157388043ecffaa2 @coderunr coderunr committed Jan 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/qosAggregator.js
View
2 lib/qosAggregator.js
@@ -232,7 +232,7 @@ QosAggregator.prototype.getTagStats = function(documents, callback) {
var aggregatedStats = [];
async.forEach(documents, function(document, next) {
self.createTagStatFromPingAggregationDocument(document, function(err, stat) {
- if (err) return cb(err);
+ if (err) return next(err);
aggregatedStats.push(stat);
next();
});

0 comments on commit 4f7bd7e

Please sign in to comment.