fix auth command oopsie
This commit is contained in:
parent
c475c112da
commit
72081a603f
2 changed files with 14 additions and 12 deletions
|
@ -7,11 +7,11 @@ namespace Femto.Modules.Auth.Application;
|
|||
|
||||
internal class AuthModule(IHost host) : IAuthModule
|
||||
{
|
||||
public Task Command(ICommand command, CancellationToken cancellationToken = default)
|
||||
public async Task Command(ICommand command, CancellationToken cancellationToken = default)
|
||||
{
|
||||
using var scope = host.Services.CreateScope();
|
||||
var mediator = scope.ServiceProvider.GetRequiredService<IMediator>();
|
||||
return mediator.Send(command, cancellationToken);
|
||||
await mediator.Send(command, cancellationToken);
|
||||
}
|
||||
|
||||
public async Task<TResponse> Command<TResponse>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue