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
{
$orderBy = $filtering?->orderBy();
$orderField = $orderBy?->orderField();
$orderDir = $orderBy?->orderDirection();
$orderField = $filtering?->orderBy()?->orderField();
$orderDir = $filtering?->orderBy()?->orderDirection();
$orderMainQuery = contains(['shortUrlsCount', 'visitsCount'], $orderField);
$conn = $this->getEntityManager()->getConnection();