Explorar o código

Update DeleteAccountPipeline, fix typo

Daniel Supernault %!s(int64=3) %!d(string=hai) anos
pai
achega
2533bd51a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Jobs/DeletePipeline/DeleteAccountPipeline.php

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

@@ -119,7 +119,7 @@ class DeleteAccountPipeline implements ShouldQueue
 			Bookmark::whereProfileId($id)->forceDelete();
 			EmailVerification::whereUserId($user->id)->forceDelete();
 			StatusHashtag::whereProfileId($id)->delete();
-			DirectMessage::whereFromId($id)->orWhereToId($id)->delete();
+			DirectMessage::whereFromId($id)->orWhere('to_id', $id)->delete();
 			StatusArchived::whereProfileId($id)->delete();
 			UserPronoun::whereProfileId($id)->delete();
 			FollowRequest::whereFollowingId($id)