Skip to content

Commit

Permalink
Fix: missing call to releaseEvents for fireing the EmailChanged event (
Browse files Browse the repository at this point in the history
…#86)

* fix: missing release of registered evenrts

* chore: format
  • Loading branch information
novacuum authored Nov 28, 2024
1 parent a9646d2 commit e9f403c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Jobs/CheckAndUpdateUserEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function handle(UserValidator $validator)
$user->changeEmail($this->providedEmail);

$user->save();
$user->releaseEvents();
}
}
}

0 comments on commit e9f403c

Please sign in to comment.