fix: missed send_to_email column in sale estimate.

This commit is contained in:
Ahmed Bouhuolia
2020-10-26 12:48:26 +02:00
parent 4d3cd250fd
commit 92ddc1bf38
5 changed files with 11 additions and 6 deletions

View File

@@ -120,7 +120,9 @@ export default class SaleEstimateService {
});
this.logger.info('[sale_estimate] insert sale estimated success.');
await this.eventDispatcher.dispatch(events.saleEstimate.onCreated);
await this.eventDispatcher.dispatch(events.saleEstimate.onCreated, {
tenantId, saleEstimate, saleEstimateId: saleEstimate.id,
});
return saleEstimate;
}