edit customer save button should return to customer list

This commit is contained in:
2026-07-11 22:45:40 -04:00
parent 445cbf6ac7
commit 4168ccbedf
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -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;