diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index 6b0525cd78..9adbd440dd 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -74,9 +74,7 @@ function graphqlRequest( $query = [ 'query' => $request->getSwoole()->rawContent() ]; } - $batch = true; if (!isset($query[0])) { - $batch = false; $query = [$query]; }