fix: Centralize usage of CardDetails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -99,15 +99,7 @@ class StackService {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->cardService->enrichCards($cards);
|
||||
$cards = array_map(
|
||||
function (Card $card): CardDetails {
|
||||
return new CardDetails($card);
|
||||
},
|
||||
$cards
|
||||
);
|
||||
|
||||
$stack->setCards($cards);
|
||||
$stack->setCards($this->cardService->enrichCards($cards));
|
||||
}
|
||||
|
||||
private function enrichStacksWithCards($stacks, $since = -1) {
|
||||
|
||||
Reference in New Issue
Block a user