Skip to content

Commit

Permalink
Better error detection on GraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikyt committed Jan 18, 2019
1 parent acb92fb commit a94c4cf
Show file tree
Hide file tree
Showing 21 changed files with 1 addition and 1 deletion.
Empty file modified .gitattributes 100644 → 100755
Empty file.
Empty file modified .gitignore 100644 → 100755
Empty file.
Empty file modified .travis.yml 100644 → 100755
Empty file.
Empty file modified CHANGELOG.md 100644 → 100755
Empty file.
Empty file modified CODE_OF_CONDUCT.md 100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md 100644 → 100755
Empty file.
Empty file modified LICENSE 100644 → 100755
Empty file.
Empty file modified README.md 100644 → 100755
Empty file.
Empty file modified UPGRADING.md 100644 → 100755
Empty file.
Empty file modified composer.json 100644 → 100755
Empty file.
Empty file modified composer.lock 100644 → 100755
Empty file.
Empty file modified phpunit.xml 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/OhMyBrew/BasicShopifyAPI.php 100644 → 100755
Expand Up @@ -532,7 +532,7 @@ public function graph(string $query, array $variables = [])
// Return Guzzle response and JSON-decoded body
return (object) [
'response' => $response,
'body' => property_exists($body, 'data') ? $body->data : $body->errors,
'body' => property_exists($body, 'errors') ? $body->errors : $body->data,
'errors' => property_exists($body, 'errors'),
'timestamps' => [$tmpTimestamp, $this->requestTimestamp],
];
Expand Down
Empty file modified test/BaseApiTest.php 100644 → 100755
Empty file.
Empty file modified test/GraphApiTest.php 100644 → 100755
Empty file.
Empty file modified test/RestApiTest.php 100644 → 100755
Empty file.
Empty file modified test/fixtures/admin__oauth__access_token.json 100644 → 100755
Empty file.
Empty file modified test/fixtures/graphql/create_collection.json 100644 → 100755
Empty file.
Empty file modified test/fixtures/graphql/shop_products.json 100644 → 100755
Empty file.
Empty file modified test/fixtures/graphql/shop_products_error.json 100644 → 100755
Empty file.
Empty file modified test/fixtures/rest/admin__shop.json 100644 → 100755
Empty file.

0 comments on commit a94c4cf

Please sign in to comment.