Skip to content

Commit

Permalink
fix: add missing await to catch errors thrown in parsingDidEnd()
Browse files Browse the repository at this point in the history
  • Loading branch information
fubhy committed Jun 10, 2022
1 parent 30a2231 commit 06c258f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apollo-server-core/src/requestPipeline.ts
Expand Up @@ -245,7 +245,7 @@ export async function processGraphQLRequest<TContext>(

try {
requestContext.document = parse(query, config.parseOptions);
parsingDidEnd();
await parsingDidEnd();
} catch (syntaxError) {
await parsingDidEnd(syntaxError as Error);
// XXX: This cast is pretty sketchy, as other error types can be thrown
Expand Down

0 comments on commit 06c258f

Please sign in to comment.