Ken 2 bulan lalu
induk
melakukan
143dd5a62b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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) {