remove console log

This commit is contained in:
Max S 2024-09-10 18:16:32 +02:00
parent 5bd5e096ca
commit bcd12b5317

View File

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