Update DeleteRemoteProfilePipeline.php

pull/6450/head
Shlee 5 months ago committed by GitHub
parent 3140404835
commit 8d7b090e4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -134,7 +134,7 @@ class DeleteRemoteProfilePipeline implements ShouldQueue
});
// Delete reports
Report::whereProfileId($profile->id)->orWhere('reported_profile_id')->forceDelete();
Report::whereProfileId($pid)->orWhere('reported_profile_id', $pid)->forceDelete();
// Delete profile
Profile::findOrFail($profile->id)->delete();

Loading…
Cancel
Save