Skip to content

Commit

Permalink
Correction du restore
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmugnier committed Oct 11, 2021
1 parent fe14857 commit 73c99d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public async Task<Result<Guid>> Handle(RegisterConsumerCommand request, Cancella
{
if (consumer != null)
{
consumer.Restore();
_context.Restore(consumer);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ await _context.Producers.SingleOrDefaultAsync(
{
if (producer != null)
{
producer.Restore();
_context.Restore(producer);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion Sheaft.Mediatr/Store/Commands/RegisterStoreCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public async Task<Result<Guid>> Handle(RegisterStoreCommand request, Cancellatio

if (store != null)
{
store.Restore();
_context.Restore(store);
}
else
{
Expand Down

0 comments on commit 73c99d0

Please sign in to comment.