From 5eeb2b67c2ce82a87bc5e2d2d1592b8c69753768 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 28 Nov 2024 12:33:51 +0100 Subject: [PATCH 1/2] fix: missing release of registered evenrts --- src/Jobs/CheckAndUpdateUserEmail.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Jobs/CheckAndUpdateUserEmail.php b/src/Jobs/CheckAndUpdateUserEmail.php index 37905ad..248cc1d 100644 --- a/src/Jobs/CheckAndUpdateUserEmail.php +++ b/src/Jobs/CheckAndUpdateUserEmail.php @@ -76,6 +76,8 @@ public function handle(UserValidator $validator) $user->changeEmail($this->providedEmail); $user->save(); + + $user->releaseEvents(); } } } From e7026926b55c3c8768948c3c5890c612e3e1a0fb Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 28 Nov 2024 12:34:53 +0100 Subject: [PATCH 2/2] chore: format --- src/Jobs/CheckAndUpdateUserEmail.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Jobs/CheckAndUpdateUserEmail.php b/src/Jobs/CheckAndUpdateUserEmail.php index 248cc1d..81b0756 100644 --- a/src/Jobs/CheckAndUpdateUserEmail.php +++ b/src/Jobs/CheckAndUpdateUserEmail.php @@ -76,8 +76,7 @@ public function handle(UserValidator $validator) $user->changeEmail($this->providedEmail); $user->save(); - - $user->releaseEvents(); + $user->releaseEvents(); } } }