1
0
Эх сурвалжийг харах

Update ApiV1Controller.php

Co-Authored-By: Mathieu <385764+Casmo@users.noreply.github.com>
Felipe Mateus 3 сар өмнө
parent
commit
128533b5d8

+ 3 - 3
app/Http/Controllers/Api/ApiV1Controller.php

@@ -4443,12 +4443,12 @@ class ApiV1Controller extends Controller
         $pid =  $request->user()->profile_id;
 
         if (intval($pid) === intval($target_id)) {
-            return $this->json(['error' => 'Request invalid! Targed is same user id.'], 500);
+            return $this->json(['error' => 'Request invalid! target_id is same user id.'], 500);
         }
 
         Follower::whereProfileId($target_id)
-        ->whereFollowingId($pid)
-        ->delete();
+            ->whereFollowingId($pid)
+            ->delete();
 
         RelationshipService::refresh($pid, $target_id);