Skip to content

Commit

Permalink
Removed first parameters for every paginated requets to let Twitch
Browse files Browse the repository at this point in the history
fallback to his default valor.
  • Loading branch information
Valentin RONTEIX committed Dec 10, 2019
1 parent 80664e6 commit 6778366
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ export default class HelixPaginatedRequestWithTotal<D, T> extends HelixPaginated
async getTotalCount() {
const data =
this._currentData ||
((await this._fetchData({ query: { first: '20', after: undefined } })) as HelixPaginatedResponseWithTotal<
D
>);
((await this._fetchData({ query: { after: undefined } })) as HelixPaginatedResponseWithTotal<D>);
return data.total;
}
}

0 comments on commit 6778366

Please sign in to comment.