edit customer save button should return to customer list
This commit is contained in:
@@ -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