From f00b860bb77065dc9d300582a7912f6a559c618d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 17 Apr 2024 00:40:37 +0530 Subject: [PATCH] fix: add await --- scraper/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/src/main.js b/scraper/src/main.js index 5eae4c82..1a5330b8 100644 --- a/scraper/src/main.js +++ b/scraper/src/main.js @@ -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}`) }); \ No newline at end of file