Skip to content

Commit

Permalink
Fix server type check
Browse files Browse the repository at this point in the history
  • Loading branch information
braineo committed Jun 4, 2020
1 parent 02f1fb6 commit ff50055
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/apollo-server-core/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -667,12 +667,12 @@ export class ApolloServerBase {
},
keepAlive,
},
server instanceof WebSocket.Server
? server
: {
server,
path,
},
server instanceof HttpServer
? {
server,
path,
}
: server
);
}

Expand Down

0 comments on commit ff50055

Please sign in to comment.