From b3cc17aee0d8e21021ea8e73aeade184e8648f48 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Sat, 7 Dec 2019 17:52:27 +1030 Subject: [PATCH] Missing return --- routes/customer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/customer.js b/routes/customer.js index 573b2f0..76846fa 100644 --- a/routes/customer.js +++ b/routes/customer.js @@ -123,6 +123,7 @@ router.delete('/admin/customer', restrict, async (req, res) => { res.status(400).json({ message: 'Failed to delete customer. Customer not found' }); + return; } // Update customer try{