MAPG-235 fix user deletion bug

This commit is contained in:
balazs committed 2021-05-19 13:52:19 +02:00
1 parent a7cfc3c19f
commit c085a5a1ca
5 files changed
+32 -7

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ class GameFlowController
if (!isset($currentPlace) || $withHistory) {
$withRelations = [User::class, PlaceInChallenge::class, Place::class];
foreach ($this->guessRepository->getAllInChallenge($challenge, $withRelations) as $guess) {
foreach ($this->guessRepository->getAllInChallenge($challenge, $withRelations) as $guess) {
$round = $guess->getPlaceInChallenge()->getRound();
if ($guess->getUser()->getId() === $userId) {