fix auth command oopsie

This commit is contained in:
john 2025-05-18 22:45:18 +02:00
parent c475c112da
commit 72081a603f
2 changed files with 14 additions and 12 deletions

View file

@ -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>(