Resolve groups again for card generation
This commit is contained in:
		@@ -28,7 +28,7 @@ export class RunnerCardController {
 | 
			
		||||
	@OpenAPI({ description: 'Lists all card.' })
 | 
			
		||||
	async getAll() {
 | 
			
		||||
		let responseCards: ResponseRunnerCard[] = new Array<ResponseRunnerCard>();
 | 
			
		||||
		const cards = await this.cardRepository.find({ relations: ['runner'] });
 | 
			
		||||
		const cards = await this.cardRepository.find({ relations: ['runner', 'runner.group', 'runner.group.parentGroup'] });
 | 
			
		||||
		cards.forEach(card => {
 | 
			
		||||
			responseCards.push(new ResponseRunnerCard(card));
 | 
			
		||||
		});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user