mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: reponse readable text and linting some pages.
This commit is contained in:
@@ -213,7 +213,10 @@ export default class CustomersController extends ContactsController {
|
||||
|
||||
try {
|
||||
await this.customersService.deleteCustomer(tenantId, contactId)
|
||||
return res.status(200).send({ id: contactId });
|
||||
return res.status(200).send({
|
||||
id: contactId,
|
||||
message: 'The customer has been deleted successfully.',
|
||||
});
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
@@ -252,7 +255,11 @@ export default class CustomersController extends ContactsController {
|
||||
|
||||
try {
|
||||
await this.customersService.deleteBulkCustomers(tenantId, contactsIds)
|
||||
return res.status(200).send({ ids: contactsIds });
|
||||
|
||||
return res.status(200).send({
|
||||
ids: contactsIds,
|
||||
message: 'The customers have been deleted successfully.',
|
||||
});
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user