Skip to content

Commit

Permalink
[FEATURE] Add voting management to TwitchChatBot with a dedicated ser…
Browse files Browse the repository at this point in the history
…vice
  • Loading branch information
AntoineBorda committed Nov 4, 2024
1 parent 68d9ec5 commit 6af1857
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6af1857

Please sign in to comment.