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())
.listen(process.env.PORT, (error) => {
if (error) throw error;
.listen(process.env.PORT, () => {
console.info(
`Serving http://localhost:${process.env.PORT} for ${process.env.NODE_ENV}.`
);