edit customer save button should return to customer list
This commit is contained in:
1 parent
445cbf6ac7
commit
4168ccbedf
3 files changed
+9
-1
No files matched your search
@@ -55,7 +55,7 @@ router.post('/:id/edit', (req, res) => {
|
||||
|
||||
if (info.changes === 0) return res.status(404).send('Customer not found');
|
||||
|
||||
res.redirect(303, `/customers/${req.params.id}/edit`);
|
||||
res.redirect(303, '/customers');
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in new issue
Block a user