Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/blame/commit/dc1895ee48eec56316bf0f258abaf08f7e581256/NzbDrone.Core/Instrumentation/LogRepository.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
Readarr/NzbDrone.Core/Instrumentation/LogRepository.cs

25 lines
611 B

using System;
using NzbDrone.Common.Messaging;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Instrumentation
{
public interface ILogRepository : IBasicRepository<Log>
{
void Trim();
}
public class LogRepository : BasicRepository<Log>, ILogRepository
{
public LogRepository(IDatabase database, IMessageAggregator messageAggregator)
: base(database, messageAggregator)
{
}
public void Trim()
{
var trimDate = DateTime.UtcNow.AddDays(-15).Date;
Delete(c => c.Time <= trimDate);
}
}
}