Skip to content

Commit

Permalink
Merge pull request #90 from donghquinn/dev
Browse files Browse the repository at this point in the history
pagination total page
  • Loading branch information
donghquinn authored Sep 20, 2024
2 parents f143d7b + 7825228 commit adb954e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/news/hacker/hacker.pvd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class HackersNewsProvider {
};
});

return { result: returnData, total: totalCount };
return { result: returnData, total: Math.ceil(totalCount/size) };
}

async giveStar(postUuid: string, email: string): Promise<void> {
Expand Down

0 comments on commit adb954e

Please sign in to comment.