Skip to content

Commit

Permalink
fix: remove optional chaining (graphile#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Oct 30, 2020
1 parent 129542b commit 7dde41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/postgraphile/http/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function enhanceHttpServerWithSubscriptions<
} = postgraphileMiddleware;
const pluginHook = pluginHookFromOptions(options);
const graphqlRoute =
subscriptionServerOptions?.graphqlRoute ||
(subscriptionServerOptions && subscriptionServerOptions.graphqlRoute) ||
(options.externalUrlBase || '') + (options.graphqlRoute || '/graphql');

const schema = await getGraphQLSchema();
Expand Down

0 comments on commit 7dde41d

Please sign in to comment.