Skip to content

Commit

Permalink
Keep code in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fubar-coder committed Dec 17, 2021
1 parent baf33f8 commit 3482a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FubarDev.UnitOfWork/UnitOfWorkFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ public ValueTask<IUnitOfWork<TRepository>> CreateAsync(
? currentStatusItem.Repository
: _repositoryManager.Create();

var isNewRepository = currentStatusItem == null;
var newStatusItem = new UnitOfWorkStatusItem<TRepository>(
repository,
currentStatusItem == null,
isNewRepository,
saveChangesOnDispose,
currentStatusItem?.InheritedTransaction);
_statusManager.Add(newStatusItem);
Expand Down

0 comments on commit 3482a74

Please sign in to comment.