Преглед на файлове

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();
 
             EmailVerification::whereUserId($user->id)->forceDelete();
-
             $id = $user->profile->id;
+
+            StatusHashtag::whereProfileId($id)->delete();
+            
             FollowRequest::whereFollowingId($id)->orWhere('follower_id', $id)->forceDelete();
 
             Follower::whereProfileId($id)->orWhere('following_id', $id)->forceDelete();