We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b48f5 commit 4107c14Copy full SHA for 4107c14
controllers/customerController.js
@@ -18,7 +18,7 @@ const getCustomerById = async (req, res) => {
18
}
19
};
20
const addCustomer = async (req, res) => {
21
- let customer; // Declare customer variable outside try block for later use in catch block
+ let customer;
22
try {
23
const { customer: addCustomer, tickets } = req.body;
24
customer = await customerService.add_customer(addCustomer);
0 commit comments