Skip to content

Commit

Permalink
Update GraphQLService.php
Browse files Browse the repository at this point in the history
This fixes issue #342
  • Loading branch information
redboer authored Mar 31, 2021
1 parent ada5921 commit 3b9e099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/GraphQLService.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function getSchema($token) {
}

function execute($schema, $input, $variables = []) {
$debug = Craft::$app->config->getGeneral()->devMode ? DebugFlag::INCLUDE_DEBUG_MESSAGE | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS : null;
$debug = Craft::$app->config->getGeneral()->devMode ? DebugFlag::INCLUDE_DEBUG_MESSAGE | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS : 0;
return GraphQL::executeQuery($schema, $input, null, null, $variables)->toArray($debug);
}

Expand Down

0 comments on commit 3b9e099

Please sign in to comment.