Skip to content

Commit

Permalink
fix: subscription typo (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored Sep 10, 2020
1 parent 6cf6265 commit 25235c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/runtime/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function create(appState: AppState) {
ip: address.address,
paths: {
graphql: settings.data.path,
graphqlSubscrtipions: state.enableSubscriptionsServer ? settings.data.subscriptions.path : null,
graphqlSubscriptions: state.enableSubscriptionsServer ? settings.data.subscriptions.path : null,
},
})
DevMode.sendServerReadySignalToDevModeMaster()
Expand Down
8 changes: 4 additions & 4 deletions src/runtime/server/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ type ServerStartInfo = {
ip: string
paths: {
graphql: string
graphqlSubscrtipions: null | string
graphqlSubscriptions: null | string
}
}

Expand Down Expand Up @@ -422,12 +422,12 @@ export const createServerSettingsManager = () =>
initial() {
return ({ port, host, paths }): void => {
const url = `http://${Utils.prettifyHost(host)}:${port}${paths.graphql}`
const subscrtipionsURL = paths.graphqlSubscrtipions
? `http://${Utils.prettifyHost(host)}:${port}${paths.graphqlSubscrtipions}`
const subscriptionsURL = paths.graphqlSubscriptions
? `http://${Utils.prettifyHost(host)}:${port}${paths.graphqlSubscriptions}`
: null
serverLogger.info('listening', {
url,
subscrtipionsURL,
subscriptionsURL,
})
}
},
Expand Down

0 comments on commit 25235c1

Please sign in to comment.