Browse Source

Update FixMissingUserProfile.php

Daniel Supernault 1 month ago
parent
commit
b303f90978
1 changed files with 0 additions and 6 deletions
  1. 0 6
      app/Console/Commands/FixMissingUserProfile.php

+ 0 - 6
app/Console/Commands/FixMissingUserProfile.php

@@ -11,7 +11,6 @@ use App\UserSetting;
 use App\Services\UserFilterService;
 use App\Services\UserFilterService;
 use App\Models\DefaultDomainBlock;
 use App\Models\DefaultDomainBlock;
 use App\Models\UserDomainBlock;
 use App\Models\UserDomainBlock;
-use App\Models\UserNotify;
 use App\Jobs\FollowPipeline\FollowPipeline;
 use App\Jobs\FollowPipeline\FollowPipeline;
 use DB;
 use DB;
 use App\Services\FollowerService;
 use App\Services\FollowerService;
@@ -95,11 +94,6 @@ class FixMissingUserProfile extends Command
                 $user->profile_id = $profile->id;
                 $user->profile_id = $profile->id;
                 $user->save();
                 $user->save();
 
 
-                UserNotify::updateOrCreate([
-                    'profile_id' => $profile->id,
-                    'user_id' => $user->id,
-                ]);
-
                 CreateAvatar::dispatch($profile);
                 CreateAvatar::dispatch($profile);
             });
             });