0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 06:02:46 +00:00

redundant variable

This commit is contained in:
Trevor Buckner
2021-06-20 14:32:23 -04:00
committed by GitHub
parent 8e304fa483
commit 9b97e0dd87

View File

@@ -139,8 +139,7 @@ app.get('/download/:id', asyncHandler(async (req, res)=>{
'Content-Type' : 'text/plain', 'Content-Type' : 'text/plain',
'Content-Disposition' : `attachment; filename="${fileName}.txt"` 'Content-Disposition' : `attachment; filename="${fileName}.txt"`
}); });
const text = brew.text; res.status(200).send(brew.text);
res.status(200).send(text);
})); }));
//User Page //User Page