fix: usr: the username was not recognized properly #7

This commit is contained in:
Lang
2026-04-20 10:50:58 +02:00
parent 175581cdd5
commit cd93a26c2c
2 changed files with 11 additions and 11 deletions
+4 -10
View File
@@ -407,15 +407,9 @@ class PlayedGameRepository extends ServiceEntityRepository
->leftJoin('g.blue', 'bb')
->leftJoin('g.redAnon', 'ra')
->leftJoin('g.blueAnon', 'ba')
->where($qb->expr()->andX(
$qb->expr()->orX(
$qb->expr()->eq('g.red', ':u'),
$qb->expr()->eq('g.blue', ':u'),
),
$qb->expr()->orX(
$qb->expr()->isNotNull('g.redPoints'),
$qb->expr()->isNotNull('g.resign'),
),
->where($qb->expr()->orX(
$qb->expr()->eq('g.red', ':u'),
$qb->expr()->eq('g.blue', ':u'),
))
->setParameter('u', $user)
->orderBy('g.updated', 'DESC')
@@ -457,4 +451,4 @@ class PlayedGameRepository extends ServiceEntityRepository
->getQuery()
->getResult();
}
}
}