Skip to content

Commit

Permalink
apollo-server-hapi: remove subscriptions boolean from register option…
Browse files Browse the repository at this point in the history
…s and check subscriptionsEnabled
  • Loading branch information
evans committed May 11, 2018
1 parent a60b81e commit 32a4fc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/apollo-server-hapi/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface ServerRegistration {
app: hapi.Server;
server: ApolloServerBase<hapi.Request>;
path?: string;
subscriptions?: boolean;
}

export interface HapiListenOptions {
Expand Down Expand Up @@ -49,7 +48,7 @@ export const registerServer = async ({
return h
.response(
renderPlaygroundPage({
subscriptionsEndpoint: server.subscriptions && path,
subscriptionsEndpoint: server.subscriptionsEnabled && path,
endpoint: path,
version: '1.4.0',
}),
Expand Down

0 comments on commit 32a4fc8

Please sign in to comment.