namespace Health.Application.Maintenance;

public sealed class MaintenanceService(IMaintenanceRepository repository) : IMaintenanceService
{
    private readonly IMaintenanceRepository _repository = repository;

    public Task<MaintenanceCleanupResult> CleanupAsync(DateTime utcNow, CancellationToken ct) =>
        _repository.CleanupAsync(utcNow.AddDays(-30), utcNow.AddDays(-30), utcNow, ct);
}
