Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
paritosh-08 committed Feb 5, 2025
1 parent f8c3cf5 commit 71653b7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/restified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ export const restifiedHandler = (request, graphqlServerUrl: string) => {

// Execute GraphQL query
try {
const result = await executeGraphQL(endpoint.query, variables, request, graphqlServerUrl);
const result = await executeGraphQL(
endpoint.query,
variables,
request,
graphqlServerUrl,
);
span.setStatus({
code: SpanStatusCode.OK,
message: String("Query executed successfully"),
Expand Down Expand Up @@ -128,7 +133,12 @@ function extractVariables(request: RawRequest, endpoint) {
return variables;
}

async function executeGraphQL(query, variables, request, graphqlServerUrl: string) {
async function executeGraphQL(
query,
variables,
request,
graphqlServerUrl: string,
) {
const response = await fetch(graphqlServerUrl, {
method: "POST",
headers: {
Expand Down

0 comments on commit 71653b7

Please sign in to comment.