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())
|
||||
.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}.`
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user