Ken 1 hari lalu
induk
melakukan
c066e7bae1
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Http/Controllers/api/Home.php

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

@@ -86,7 +86,7 @@ class Home extends Controller
 
         $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
         $res = DB::select($sql);
-        return $this->success($result);
+        return $this->success($res);
     }
 
     public function setMyCommands()