Skip to content

Commit

Permalink
removes unused form-data
Browse files Browse the repository at this point in the history
  • Loading branch information
joanfabregat committed Feb 23, 2024
1 parent f8cb610 commit 8720ed0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 41 deletions.
2 changes: 1 addition & 1 deletion main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ app.post('/convert', upload.single('file'), (req, res) => {

// sending the images as a response
// await res.download(imagePath);
res.sendFile(imagePath, {root: path.resolve()}, (err) => {
res.sendFile(imagePath, {root: path.resolve()}, () => {
// cleaning up
fs.unlinkSync(pdfPath);
fs.unlinkSync(imagePath);
Expand Down
42 changes: 3 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"main": "main.mjs",
"dependencies": {
"express": "^4.18.2",
"form-data": "^4.0.0",
"multer": "^1.4.5-lts.1",
"uniqid": "^5.4.0"
}
Expand Down

0 comments on commit 8720ed0

Please sign in to comment.