diff --git a/src/Infrastructure/Service/Twitch/TwitchChatVoteService.php b/src/Infrastructure/Service/Twitch/TwitchChatVoteService.php index c312f83..0abb9ad 100644 --- a/src/Infrastructure/Service/Twitch/TwitchChatVoteService.php +++ b/src/Infrastructure/Service/Twitch/TwitchChatVoteService.php @@ -19,7 +19,7 @@ public function __construct( public function registerVote(string $username, int $guess): bool { - if ($this->voteRepository->findOneByUsername($username)) { + if ($this->voteRepository->findOneBy(['username' => $username])) { $this->logger->info("L'utilisateur '$username' a déjà voté."); return false;