wzq лет назад: 5
Родитель
Сommit
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];
     }
 
     /**