Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jul 5, 2024
1 parent c1572ee commit ebb8878
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/executors/http/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,22 @@ export function buildHTTPExecutor(
return {
...parsedResult,
errors: parsedResult.errors.map(
({ message, ...options }: { message: string; extensions: Record<string, unknown> }) =>
({
message,
...options
}: {
message: string;
extensions: Record<string, unknown>;
}) =>
createGraphQLError(message, {
...options,
extensions: {
code: 'DOWNSTREAM_SERVICE_ERROR',
...options.extensions || {},
...(options.extensions || {}),
},
}),
),
}
};
}
return parsedResult;
} catch (e: any) {
Expand Down

0 comments on commit ebb8878

Please sign in to comment.