add: relation
This commit is contained in:
@@ -48,7 +48,7 @@ export class UsersController {
|
||||
@Get('find-by-supperior')
|
||||
async findBySuperrior(@Request() req, @Query('page') page: number) {
|
||||
return {
|
||||
data: await this.usersService.findBySuperrior(req.user.id, page),
|
||||
data: await this.usersService.findBySuperrior(req.user.userId, page),
|
||||
statusCode: HttpStatus.OK,
|
||||
message: 'success',
|
||||
};
|
||||
|
||||
@@ -114,7 +114,6 @@ export class UsersService {
|
||||
where: {
|
||||
superior: superriorId,
|
||||
},
|
||||
relations: ['roles'],
|
||||
order: {
|
||||
updatedAt: 'DESC',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user