Sfoglia il codice sorgente

Update DeleteAccountPipeline

Daniel Supernault 2 anni fa
parent
commit
2b1ce0d33f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/Jobs/DeletePipeline/DeleteAccountPipeline.php

+ 2 - 2
app/Jobs/DeletePipeline/DeleteAccountPipeline.php

@@ -83,8 +83,6 @@ class DeleteAccountPipeline implements ShouldQueue
                 StatusDelete::dispatchNow($status);
                 StatusDelete::dispatchNow($status);
             }
             }
         });
         });
-		$this->deleteUserColumns($user);
-		AccountService::del($user->profile_id);
 
 
 		AccountLog::whereItemType('App\User')->whereItemId($user->id)->forceDelete();
 		AccountLog::whereItemType('App\User')->whereItemId($user->id)->forceDelete();
 
 
@@ -176,6 +174,8 @@ class DeleteAccountPipeline implements ShouldQueue
 
 
 		Report::whereUserId($user->id)->forceDelete();
 		Report::whereUserId($user->id)->forceDelete();
 		PublicTimelineService::warmCache(true, 400);
 		PublicTimelineService::warmCache(true, 400);
+		$this->deleteUserColumns($user);
+		AccountService::del($user->profile_id);
 		Profile::whereUserId($user->id)->delete();
 		Profile::whereUserId($user->id)->delete();
 	}
 	}