wzq %!s(int64=5) %!d(string=hai) anos
pai
achega
3b9d2e071f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Repositories/Post/PostRepository.php

+ 2 - 1
app/Repositories/Post/PostRepository.php

@@ -530,7 +530,8 @@ class PostRepository
      */
     public function getType($request)
     {
-        return $this->post->where('id', $request['id'])->value('type');
+        $type = $this->post->where('id', $request['id'])->value('type');
+        return [$type];
     }
 
     /**