소스 검색

Update DeleteAccountPipeline, fix typo

Daniel Supernault 3 년 전
부모
커밋
2533bd51a9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)