Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
primary: true,
disabled: true,
},
},
query: {
join: {
company: {
eager: true,
},
profile: {
eager: true,
},
},
},
})
@CrudAuth({
filter: (user: User) => ({
id: user.id,
}),
})
@ApiTags('me')
@Controller('me')
export class MeController {
constructor(public service: UsersService) {}
}
params: {
projectId: {
field: 'projectId',
type: 'number',
primary: true,
},
},
query: {
join: {
project: {
eager: true,
},
},
},
})
@CrudAuth({
filter: (user: User) => ({
userId: user.id,
}),
persist: (user: User) => ({
userId: user.id,
}),
})
@ApiTags('my-projects')
@Controller('my-projects')
export class MyProjectsController {
constructor(public service: UserProjectsService) {}
}