Skip to content
Snippets Groups Projects
Commit 896ae656 authored by Jeremy Guiselin's avatar Jeremy Guiselin
Browse files

fix notification + remove unique league

parent f06e1b2c
Branches 2023
No related tags found
No related merge requests found
...@@ -135,7 +135,8 @@ class NotificationController extends Controller ...@@ -135,7 +135,8 @@ class NotificationController extends Controller
[ [
'elements' => $pagination, 'elements' => $pagination,
'countPages' => $pagesCount, 'countPages' => $pagesCount,
'page' => $page 'page' => $page,
'name' => 'notification'
] ]
); );
} }
......
...@@ -21,9 +21,7 @@ class LeagueRepository extends EntityRepository ...@@ -21,9 +21,7 @@ class LeagueRepository extends EntityRepository
*/ */
public function alreadyExists(League $league): bool public function alreadyExists(League $league): bool
{ {
return $this->findOneBy([ return false;
'name' => $league->getName()
]) !== null;
} }
public function findBySport(string $sport, Device $device) public function findBySport(string $sport, Device $device)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment