Ken 2 달 전
부모
커밋
143dd5a62b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/api/Issue.php

+ 1 - 1
app/Http/Controllers/api/Issue.php

@@ -27,7 +27,7 @@ class Issue extends BaseController
             ]);
             $date = request()->input('date', null);
             if (!$date) $date = date("Y-m-d");
-            $list = CaoHistory::where('date', $date)->first();
+            $list = CaoHistory::where('date', $date)->get();
         } catch (ValidationException $e) {
             return $this->error($e->validator->errors()->first());
         } catch (Exception $e) {