Add season count to response of getAllLeagues
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good Details

This commit is contained in:
Daniel Guzman 2024-06-02 12:02:34 +02:00
parent 1d7c003d84
commit 5ee51cf82b
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class LeagueDto
'name' => $this->name ?? '', 'name' => $this->name ?? '',
'city' => $this->city ?? '', 'city' => $this->city ?? '',
'logo' => $this->logo ?? '', 'logo' => $this->logo ?? '',
'seasonCount' => $seasonCount,
'description' => $this->description ?? '', 'description' => $this->description ?? '',
'isPublic' => $this->isPublic ?? '', 'isPublic' => $this->isPublic ?? '',
'createdAt' => !empty($this->createdAt) ? $this->createdAt->format('Y-m-d H:i:s') : '', 'createdAt' => !empty($this->createdAt) ? $this->createdAt->format('Y-m-d H:i:s') : '',