Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joanfabregat committed Feb 22, 2024
1 parent 55d85a7 commit f59a101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ app.post('/convert', upload.single('file'), async (req, res) => {
normalizeWhitespace: req.body.normalizeWhitespace !== 'false',
};

return new Promise((resolve) => {
return new Promise((resolve, reject) => {
pdfExtract.extract(req.file.path, options, (err, data) => {
if (err) {
throw err;
reject(err);
}
return resolve(data);
});
Expand Down

0 comments on commit f59a101

Please sign in to comment.