Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/e0b881fe4bfd2eac762c56c9a457fe56687ef0b3?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

fixed container registration.

pull/3113/head
kay.one 12 years ago
parent 63ba1ed026
commit e0b881fe4b

@ -56,10 +56,7 @@ namespace NzbDrone.Core
var appDataPath = environmentProvider.GetAppDataPath(); var appDataPath = environmentProvider.GetAppDataPath();
if (!Directory.Exists(appDataPath)) Directory.CreateDirectory(appDataPath); if (!Directory.Exists(appDataPath)) Directory.CreateDirectory(appDataPath);
container.Register(c => container.Register(c => c.Resolve<IDbFactory>().Create(environmentProvider.GetNzbDroneDatabase())).As<IDatabase>().SingleInstance();
{
return c.Resolve<IDbFactory>().Create(environmentProvider.GetNzbDroneDatabase());
}).As<IDbConnection>().SingleInstance();
container.RegisterGeneric(typeof(BasicRepository<>)).As(typeof(IBasicRepository<>)); container.RegisterGeneric(typeof(BasicRepository<>)).As(typeof(IBasicRepository<>));
} }

Loading…
Cancel
Save