edit customer save button should return to customer list

This commit is contained in:
eric committed 2026-07-11 22:45:40 -04:00
1 parent 445cbf6ac7
commit 4168ccbedf
3 files changed
+9 -1

No files matched your search

+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;