Resolve groups again for card generation
This commit is contained in:
parent
2d8f7528d9
commit
a5a56a263a
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue