Skip to content

Commit

Permalink
sales report file download added with Excel file and PDF file
Browse files Browse the repository at this point in the history
  • Loading branch information
arshadakl committed Oct 29, 2023
1 parent e3ddb0f commit e2c5cff
Show file tree
Hide file tree
Showing 5,088 changed files with 963,709 additions and 533 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
438 changes: 223 additions & 215 deletions controllers/adminController.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion controllers/productsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ const updateProduct = async (req, res) => {

res.redirect("/admin/products");
} catch (error) {
console.log(error.message);
if (req.fileFilterError && req.fileFilterError.redirectTo) {
return res.redirect(req.fileFilterError.redirectTo);
}
}
};

Expand Down
Loading

0 comments on commit e2c5cff

Please sign in to comment.