Skip to content

Commit

Permalink
Pass back total results so that the caller can modify start-index and…
Browse files Browse the repository at this point in the history
… make second call
  • Loading branch information
Dustin Lambert committed Jan 15, 2015
1 parent ac29332 commit ff653e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ GA.prototype.get = function(options, cb) {

}

if (typeof cb === 'function' ) cb(null, entries);
parsed_data.totalResults = parsed_data.totalResults || 0;
if (typeof cb === 'function' ) cb(null, entries, parsed_data.totalResults);

});
});
Expand Down

0 comments on commit ff653e0

Please sign in to comment.