Skip to content

Commit 7118237

Browse files
committed
correct upgrading MediatR add await on Publish
1 parent c5e5248 commit 7118237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modules/SimplCommerce.Module.Core/Extensions/SimplSignInManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public SimplSignInManager(UserManager<TUser> userManager,
2727
public override async Task SignInAsync(TUser user, bool isPersistent, string authenticationMethod = null)
2828
{
2929
var userId = await UserManager.GetUserIdAsync(user);
30-
_mediator.Publish(new UserSignedIn {UserId = long.Parse(userId)});
30+
await _mediator.Publish(new UserSignedIn {UserId = long.Parse(userId)});
3131
await base.SignInAsync(user, isPersistent, authenticationMethod);
3232
}
3333
}

0 commit comments

Comments
 (0)