Fix UserObserver

pull/6402/head
Daniel Supernault 5 days ago
parent 54a29138e2
commit c9123c6dae
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -7,7 +7,6 @@ use App\Jobs\AvatarPipeline\CreateAvatar;
use App\Jobs\FollowPipeline\FollowPipeline;
use App\Models\DefaultDomainBlock;
use App\Models\UserDomainBlock;
use App\Models\UserNotify;
use App\Profile;
use App\Services\FollowerService;
use App\User;
@ -95,10 +94,10 @@ class UserObserver
$user->profile_id = $profile->id;
$user->save();
UserNotify::updateOrCreate([
'profile_id' => $profile->id,
'user_id' => $user->id,
]);
// UserNotify::updateOrCreate([
// 'profile_id' => $profile->id,
// 'user_id' => $user->id,
// ]);
CreateAvatar::dispatch($profile);
});

Loading…
Cancel
Save