Skip to content

Commit

Permalink
Merge pull request #33 from lapaliv/develop
Browse files Browse the repository at this point in the history
fix: fix the problem with empty `Eloquent::getChanges()` in -ed events
  • Loading branch information
lapaliv authored Jun 2, 2023
2 parents 46ca04d + 3eff443 commit f1839ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scenarios/UpdateScenario.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public function handle(
|| $eventDispatcher->hasListeners(BulkEventEnum::restored());

if ($hasEndListeners) {
$this->fireUpdatedEvents($eloquent, $data, $eventDispatcher);
$this->syncChanges($data);
$this->fireUpdatedEvents($eloquent, $data, $eventDispatcher);
}

if (!empty($eloquent->getTouchedRelations())) {
Expand Down

0 comments on commit f1839ae

Please sign in to comment.