mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: customer API schema.
This commit is contained in:
@@ -175,8 +175,8 @@ export default class CustomersController extends ContactsController {
|
||||
const { id: contactId } = req.params;
|
||||
|
||||
try {
|
||||
const contact = await this.customersService.getCustomer(tenantId, contactId)
|
||||
return res.status(200).send({ contact });
|
||||
const customer = await this.customersService.getCustomer(tenantId, contactId);
|
||||
return res.status(200).send({ customer });
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user