fix: add await

This commit is contained in:
karishmas6
2024-04-17 00:40:37 +05:30
parent cd3e379c5e
commit f00b860bb7

View File

@@ -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;
console.log(`Server listening on ${fastify.server.address().port}`)
});