Remove incorrect error handling in the API server listen callback.
This commit is contained in:
parent
fc26fc41ad
commit
a56972742c
@ -30,9 +30,7 @@ async function startServer() {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.use(apolloServer.getMiddleware())
|
.use(apolloServer.getMiddleware())
|
||||||
.listen(process.env.PORT, (error) => {
|
.listen(process.env.PORT, () => {
|
||||||
if (error) throw error;
|
|
||||||
|
|
||||||
console.info(
|
console.info(
|
||||||
`Serving http://localhost:${process.env.PORT} for ${process.env.NODE_ENV}.`
|
`Serving http://localhost:${process.env.PORT} for ${process.env.NODE_ENV}.`
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user