wzq преди 5 години
родител
ревизия
3b9d2e071f
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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];
     }
 
     /**