mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 05:42:27 +00:00
Update junior.repository.ts
This commit is contained in:
@ -13,7 +13,7 @@ export class JuniorRepository {
|
||||
findJuniorsByGuardianId(guardianId: string, pageOptions: PageOptionsRequestDto) {
|
||||
return this.juniorRepository.findAndCount({
|
||||
where: { guardianId },
|
||||
relations: ['customer', 'customer.user', 'customer.profilePicture'],
|
||||
relations: ['customer', 'customer.user', 'customer.user.profilePicture'],
|
||||
skip: (pageOptions.page - FIRST_PAGE) * pageOptions.size,
|
||||
take: pageOptions.size,
|
||||
});
|
||||
|
Reference in New Issue
Block a user