Skip to content

Commit

Permalink
fix max participants bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodeloc committed Sep 24, 2024
1 parent 5663935 commit 0b2237d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/EnterLotteryHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function handle(EnterLottery $command)
]);
}

if($lottery->getAttribute('enter_count')>$lottery->getAttribute('max_participants')){
if($lottery->getAttribute('enter_count')>=$lottery->getAttribute('max_participants')){
throw new ValidationException([
'lottery' => $this->translator->trans('nodeloc-lottery.forum.too_many_participants'),
]);
Expand Down

0 comments on commit 0b2237d

Please sign in to comment.