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];
     }
 
     /**