Missing return

master
Mark Moffat 2019-12-07 17:52:27 +10:30
parent 76018ea076
commit b3cc17aee0
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ router.delete('/admin/customer', restrict, async (req, res) => {
res.status(400).json({ res.status(400).json({
message: 'Failed to delete customer. Customer not found' message: 'Failed to delete customer. Customer not found'
}); });
return;
} }
// Update customer // Update customer
try{ try{