Skip to content

Commit

Permalink
fix(UnitOfWork): clear transactions after commitOrRollback
Browse files Browse the repository at this point in the history
  • Loading branch information
ppvg committed Oct 28, 2016
1 parent 2c57e6b commit 662898f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/UnitOfWork.ts
Expand Up @@ -580,6 +580,8 @@ export class UnitOfWork {
}

return Promise.all(resolves).then(() => {
this.transactions = {};

if (error) {
throw error;
}
Expand Down

0 comments on commit 662898f

Please sign in to comment.