Skip to content

Commit

Permalink
Ignore when single use code
Browse files Browse the repository at this point in the history
  • Loading branch information
enjinabner committed Jul 3, 2023
1 parent fd83912 commit 4736f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Jobs/ClaimBeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public function handle(BatchService $batch, WalletService $wallet): void
{
if ($data = $this->data) {
try {
$beam = Beam::find($this->data['beam']['id']);
$beam = Beam::find($data['beam']['id']);
$claim = null;
if ($beam->probabilities) {
if ($beam->probabilities && !$data['code']) {
$claim = $this->computeClaim($beam);
}
if (!$claim) {
Expand Down

0 comments on commit 4736f18

Please sign in to comment.