Resolve groups again for card generation

This commit is contained in:
Nicolai Ort 2023-04-15 21:15:29 +02:00
parent 2d8f7528d9
commit a5a56a263a
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 1 additions and 1 deletions

View File

@ -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));
});