remove console log
This commit is contained in:
parent
5bd5e096ca
commit
bcd12b5317
@ -249,7 +249,6 @@ export default class CustomersController extends ApiController {
|
|||||||
|
|
||||||
const customerEntity = await this.customersService.getByUid(uid, { contact: true, office: true });
|
const customerEntity = await this.customersService.getByUid(uid, { contact: true, office: true });
|
||||||
|
|
||||||
|
|
||||||
if (!customerEntity) {
|
if (!customerEntity) {
|
||||||
this.httpNotFoundRequest(response, "customer not found");
|
this.httpNotFoundRequest(response, "customer not found");
|
||||||
return;
|
return;
|
||||||
@ -258,11 +257,8 @@ export default class CustomersController extends ApiController {
|
|||||||
//Hydrate ressource with prisma entity
|
//Hydrate ressource with prisma entity
|
||||||
const customer = Customer.hydrate<Customer>(customerEntity, { strategy: "excludeAll" });
|
const customer = Customer.hydrate<Customer>(customerEntity, { strategy: "excludeAll" });
|
||||||
|
|
||||||
|
|
||||||
// Call service to send reminder with documents
|
// Call service to send reminder with documents
|
||||||
const reminder = await this.customersService.sendDocumentsReminder(customer, documentEntities);
|
await this.customersService.sendDocumentsReminder(customer, documentEntities);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Success
|
// Success
|
||||||
this.httpSuccess(response, customer);
|
this.httpSuccess(response, customer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user