Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5751019

Browse files
Daniel Pigottterinjokes
authored andcommitted
fix(Paginated): add totalPages field
1 parent 8b565be commit 5751019

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function PaginatedResponse(result, info) {
1919
this.result = result;
2020
this.page = info.page;
2121
this.perPage = info.per_page;
22+
this.totalPages = info.total_pages;
2223
this.count = info.count;
2324
this.total = info.total_count;
2425
}

0 commit comments

Comments
 (0)