Skip to content

Commit

Permalink
launch transactionCommitted before decreasinig the transactions level (
Browse files Browse the repository at this point in the history
…#30883)

this is fix for #30756
  • Loading branch information
simoebenhida authored and taylorotwell committed Dec 19, 2019
1 parent 0ecb943 commit 9343d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Concerns/ManagesTransactions.php
Expand Up @@ -171,9 +171,9 @@ public function commit()
$this->getPdo()->commit();
}

$this->transactions = max(0, $this->transactions - 1);

$this->fireConnectionEvent('committed');

$this->transactions = max(0, $this->transactions - 1);
}

/**
Expand Down

0 comments on commit 9343d72

Please sign in to comment.