using ODMO.Commons.Interfaces; using MediatR; namespace ODMO.Application.Separar.Commands.Update { public class UpdateLastPlayedServerCommandHandler : IRequestHandler { private readonly IAccountCommandsRepository _repository; public UpdateLastPlayedServerCommandHandler(IAccountCommandsRepository repository) { _repository = repository; } public async Task Handle(UpdateLastPlayedServerCommand request, CancellationToken cancellationToken) { await _repository.UpdateLastPlayedServerByIdAsync(request.AccountId, request.ServerId); return Unit.Value; } } }