From 4e60db0598111279ce509bdae8fdf2912d146f42 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 13 Oct 2022 16:56:12 +1300 Subject: [PATCH] Use upstream raw payload function --- app/controllers/api/graphql.php | 2 +- src/Appwrite/Utopia/Request.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index 0669c1e02..6338dd9b8 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -178,7 +178,7 @@ function executeRequest( */ function parseGraphql(Request $request): array { - return [ 'query' => $request->getSwoole()->rawContent() ]; + return [ 'query' => $request->getRawContent() ]; } /** diff --git a/src/Appwrite/Utopia/Request.php b/src/Appwrite/Utopia/Request.php index c5a916bed..275f998ce 100644 --- a/src/Appwrite/Utopia/Request.php +++ b/src/Appwrite/Utopia/Request.php @@ -32,11 +32,6 @@ class Request extends UtopiaRequest return new self($this->swoole); } - public function getSwoole(): SwooleRequest - { - return $this->swoole; - } - /** * Get Params *