fix: customer API schema.

This commit is contained in:
Ahmed Bouhuolia
2020-11-09 21:57:52 +02:00
parent 4a41df6b01
commit af37fe8cba
2 changed files with 14 additions and 5 deletions

View File

@@ -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);
}