We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ddb88d commit 255d90bCopy full SHA for 255d90b
src/Listener/SyncProfileEventListener.php
@@ -48,8 +48,12 @@ public function subscribe(Dispatcher $events)
48
49
public function syncEvent(SyncProfileEvent $event)
50
{
51
- $user = User::query()->where("email", $event->email)->first();
52
- if (!$user) return;
+ $email = $event->email;
+ $user = User::query()->where("email", $email)->first();
53
+ if (!$user) {
54
+ $this->debugLog("Failed sync profile, due to $email not found");
55
+ return;
56
+ }
57
$this->sync($user, $event->attributes);
58
$user->save();
59
$this->debugLog("Synced $event->email");
0 commit comments