Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 341 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 341 Bytes

Unit of work pattern for TypeORM

return this.uow.transaction(async () => {
  const updatedWh = await this.saveWhPort.saveWarehouse(warehouse);
  await this.saveReport.save(report);
  return updatedWh;
});

image