using JSMR.Application.VoiceWorks.Ports;

namespace JSMR.Application.VoiceWorks.Commands.SetFavorite;

public sealed class SetVoiceWorkFavoriteHandler(IVoiceWorkWriter writer)
{
    public async Task<SetVoiceWorkFavoriteResponse> HandleAsync(SetVoiceWorkFavoriteRequest request, CancellationToken cancellationToken = default)
    {
        return await writer.SetFavoriteAsync(request, cancellationToken);
    }
}