MAPG-235 guesses of other players in the round are sent after guess

This commit is contained in:
balazs committed 2021-05-13 13:06:24 +02:00
1 parent 93f8fc3f34
commit e7869d67f7
7 files changed
+61 -14

No files matched your search

+6
View File
@@ -3,6 +3,7 @@
use DateTime;
use Generator;
use MapGuesser\Database\Query\Select;
use MapGuesser\PersistentData\Model\Guess;
use MapGuesser\PersistentData\Model\User;
use MapGuesser\PersistentData\PersistentDataManager;
@@ -44,4 +45,9 @@ class UserRepository
yield from $this->pdm->selectMultipleFromDb($select, User::class);
}
public function getByGuess(Guess $guess): ?User
{
return $this->getById($guess->getUserId());
}
}