fix: add await
This commit is contained in:
@@ -38,7 +38,7 @@ fastify.post('/scrape', async (request, reply) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
fastify.listen(3000, (err, address) => {
|
await fastify.listen(3000, (err, address) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log(`Server listening on ${fastify.server.address().port}`)
|
console.log(`Server listening on ${fastify.server.address().port}`)
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user