= await addCustomer(req.body);
res.status(200).send(customer);
});guys, is there any way to make validateCustomer(req, res) to stop the execution of this anonymous function according to certain condition?
something like return
if (!validateCustomer(req)) return;
Обсуждают сегодня