Skip to content

Commit

Permalink
fix: explicitly stage transaction to correctly run afterCommit jobs
Browse files Browse the repository at this point in the history
laravel v10.32.0 laravel/framework#48859 requires explicit staging of transactions
  • Loading branch information
oprudkyi authored Nov 16, 2023
1 parent b57fa3d commit 250dc6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Concerns/ManagesTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ protected function performSpannerCommit(): void
$this->currentTransaction->commit();
}

$this->transactionsManager?->stageTransactions($this->getName());

$this->transactions = max(0, $this->transactions - 1);
if ($this->isTransactionFinished()) {
$this->currentTransaction = null;
Expand Down

0 comments on commit 250dc6c

Please sign in to comment.