From e9f403c39d4c1f74f16496ad32f60e6c82bab8aa Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 28 Nov 2024 12:39:43 +0100 Subject: [PATCH] Fix: missing call to releaseEvents for fireing the EmailChanged event (#86) * fix: missing release of registered evenrts * chore: format --- src/Jobs/CheckAndUpdateUserEmail.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Jobs/CheckAndUpdateUserEmail.php b/src/Jobs/CheckAndUpdateUserEmail.php index 37905ad..81b0756 100644 --- a/src/Jobs/CheckAndUpdateUserEmail.php +++ b/src/Jobs/CheckAndUpdateUserEmail.php @@ -76,6 +76,7 @@ public function handle(UserValidator $validator) $user->changeEmail($this->providedEmail); $user->save(); + $user->releaseEvents(); } } }