feat(orgs): Also resolve child-teams' distances and add them to org total
This commit is contained in:
		@@ -52,7 +52,7 @@ export class RunnerOrganizationController {
 | 
			
		||||
	@OnUndefined(RunnerOrganizationNotFoundError)
 | 
			
		||||
	@OpenAPI({ description: 'Lists all information about the organization whose id got provided.' })
 | 
			
		||||
	async getOne(@Param('id') id: number) {
 | 
			
		||||
		let runnerOrg = await this.runnerOrganizationRepository.findOne({ id: id }, { relations: ['contact', 'teams', 'runners', 'runners.scans', 'runners.scans.track'] });
 | 
			
		||||
		let runnerOrg = await this.runnerOrganizationRepository.findOne({ id: id }, { relations: ['contact', 'teams', 'teams.runners', 'teams.runners.scans', 'teams.runners.scans.track', 'runners', 'runners.scans', 'runners.scans.track'] });
 | 
			
		||||
		if (!runnerOrg) { throw new RunnerOrganizationNotFoundError(); }
 | 
			
		||||
		return new ResponseRunnerOrganization(runnerOrg);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user