Skip to content

Commit

Permalink
fix assign to const var
Browse files Browse the repository at this point in the history
  • Loading branch information
PhungThanhTu committed Jul 24, 2023
1 parent ef96c8c commit 3e0a745
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/routes/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ router.post(
}

const extension = getFileExtensions(fileName);
const mime = lookup(extension);
let mime = lookup(extension);

if(contentTypeId === 1 && extension !== 'pdf')
{
Expand Down Expand Up @@ -237,6 +237,7 @@ router.post(
}
catch (err)
{
console.log(err);
return handleExceptionInResponse(res, err);
}
});
Expand Down

0 comments on commit 3e0a745

Please sign in to comment.