Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Mar 20, 2024
1 parent 524856b commit 3db9ece
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,9 @@ public static AuthenticationContext generateAuthenticationContext(String tokenSi
;
}
if (synCtx != null && APIConstants.GRAPHQL_API.equals(synCtx.getProperty(APIConstants.API_TYPE))) {
Integer graphQLMaxDepth = (int) (long) subscriptionTierObj.get(GraphQLConstants.GRAPHQL_MAX_DEPTH);
Integer graphQLMaxDepth = ((Number) subscriptionTierObj.get(GraphQLConstants.GRAPHQL_MAX_DEPTH)).intValue();

Check warning on line 737 in components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/utils/GatewayUtils.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/utils/GatewayUtils.java#L737

Added line #L737 was not covered by tests
Integer graphQLMaxComplexity =
(int) (long) subscriptionTierObj.get(GraphQLConstants.GRAPHQL_MAX_COMPLEXITY);
((Number) subscriptionTierObj.get(GraphQLConstants.GRAPHQL_MAX_COMPLEXITY)).intValue();

Check warning on line 739 in components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/utils/GatewayUtils.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/utils/GatewayUtils.java#L739

Added line #L739 was not covered by tests
synCtx.setProperty(GraphQLConstants.MAXIMUM_QUERY_DEPTH, graphQLMaxDepth);
synCtx.setProperty(GraphQLConstants.MAXIMUM_QUERY_COMPLEXITY, graphQLMaxComplexity);
}
Expand Down

0 comments on commit 3db9ece

Please sign in to comment.