Remove incorrect error handling in the API server listen callback.

This commit is contained in:
Jayden Seric 2022-05-23 15:09:55 +10:00
parent fc26fc41ad
commit a56972742c

View File

@ -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}.`
); );