Преглед изворни кода

Update DeleteAccountPipeline to delete StatusHashtags

Daniel Supernault пре 6 година
родитељ
комит
76c480bf85
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      app/Jobs/DeletePipeline/DeleteAccountPipeline.php

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

@@ -80,8 +80,10 @@ class DeleteAccountPipeline implements ShouldQueue
             Bookmark::whereProfileId($user->profile->id)->forceDelete();
             Bookmark::whereProfileId($user->profile->id)->forceDelete();
 
 
             EmailVerification::whereUserId($user->id)->forceDelete();
             EmailVerification::whereUserId($user->id)->forceDelete();
-
             $id = $user->profile->id;
             $id = $user->profile->id;
+
+            StatusHashtag::whereProfileId($id)->delete();
+            
             FollowRequest::whereFollowingId($id)->orWhere('follower_id', $id)->forceDelete();
             FollowRequest::whereFollowingId($id)->orWhere('follower_id', $id)->forceDelete();
 
 
             Follower::whereProfileId($id)->orWhere('following_id', $id)->forceDelete();
             Follower::whereProfileId($id)->orWhere('following_id', $id)->forceDelete();