diff --git a/server.js b/server.js index 06d2c9b38..7753165c0 100644 --- a/server.js +++ b/server.js @@ -139,8 +139,7 @@ app.get('/download/:id', asyncHandler(async (req, res)=>{ 'Content-Type' : 'text/plain', 'Content-Disposition' : `attachment; filename="${fileName}.txt"` }); - const text = brew.text; - res.status(200).send(text); + res.status(200).send(brew.text); })); //User Page