Fixed bug in return creation
This commit is contained in:
parent
8c00aefd6c
commit
6c9b91d75a
@ -61,9 +61,10 @@ export class RunnerCardController {
|
|||||||
|
|
||||||
if (returnCards) {
|
if (returnCards) {
|
||||||
let responseCards: ResponseRunnerCard[] = new Array<ResponseRunnerCard>();
|
let responseCards: ResponseRunnerCard[] = new Array<ResponseRunnerCard>();
|
||||||
cards.forEach(card => {
|
for await (let card of cards) {
|
||||||
responseCards.push(new ResponseRunnerCard(card));
|
let dbCard = await this.cardRepository.findOne({ id: card.id });
|
||||||
});
|
responseCards.push(new ResponseRunnerCard(dbCard));
|
||||||
|
}
|
||||||
return responseCards;
|
return responseCards;
|
||||||
}
|
}
|
||||||
let response = new ResponseEmpty();
|
let response = new ResponseEmpty();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user