Removed not-needed extra line

This commit is contained in:
Alejandro Celaya 2022-01-22 20:36:50 +01:00
parent 1c9ce0ede0
commit dd6bcd68cc

View file

@ -41,9 +41,8 @@ class TagRepository extends EntitySpecificationRepository implements TagReposito
*/ */
public function findTagsWithInfo(?TagsListFiltering $filtering = null): array public function findTagsWithInfo(?TagsListFiltering $filtering = null): array
{ {
$orderBy = $filtering?->orderBy(); $orderField = $filtering?->orderBy()?->orderField();
$orderField = $orderBy?->orderField(); $orderDir = $filtering?->orderBy()?->orderDirection();
$orderDir = $orderBy?->orderDirection();
$orderMainQuery = contains(['shortUrlsCount', 'visitsCount'], $orderField); $orderMainQuery = contains(['shortUrlsCount', 'visitsCount'], $orderField);
$conn = $this->getEntityManager()->getConnection(); $conn = $this->getEntityManager()->getConnection();