Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bashleigh committed Oct 12, 2018
1 parent 482aacc commit 504b388
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ export class UserService {
): Promise<Pagination<User>> {
const [results, total] = await this.userRepository.findAndCount({
take: options.limit,
skip: options.page, //think this needs to be page * limit
skip: options.page, // think this needs to be page * limit
});

// TODO add more tests for paginate

return new Pagination<User>({
results,
total,
Expand Down

0 comments on commit 504b388

Please sign in to comment.