feat(orgs): Also resolve child-teams' distances and add them to org total
This commit is contained in:
		@@ -67,6 +67,9 @@ export class ResponseRunnerOrganization extends ResponseRunnerGroup implements I
 | 
			
		||||
            for (let team of org.teams) {
 | 
			
		||||
                this.teams.push(team.toResponse());
 | 
			
		||||
            }
 | 
			
		||||
            for (const team of this.teams) {
 | 
			
		||||
                this.total_distance += team.total_distance;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!org.key) { this.registrationEnabled = false; }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user