Update DeleteAccountPipeline

pull/4047/head
Daniel Supernault 2022-12-30 20:29:36 -07:00
rodzic ec4128254f
commit 2b1ce0d33f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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