Skip to content
Browse files

fix limit check.

  • Loading branch information...
1 parent 4b6a56d commit 4566d4282b5cc2488894264f373d5bda4f93101e @chjj committed Feb 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/charged.js
View
2 lib/charged.js
@@ -1618,7 +1618,7 @@ Charged.prototype._page = function(path, query, callback, format) {
}
query.page = 0;
- if (limit && limit !== Infinity && format === 'webhook') {
+ if (limit && amount > limit && format === 'webhook') {
query.per_page = limit;
} else {
query.per_page = amount;

0 comments on commit 4566d42

Please sign in to comment.
Something went wrong with that request. Please try again.