Extract Database to interface
This commit is contained in:
@@ -40,10 +40,10 @@ namespace PluralKit.API
|
||||
public class SystemController : ControllerBase
|
||||
{
|
||||
private IDataStore _data;
|
||||
private Database _conn;
|
||||
private IDatabase _conn;
|
||||
private TokenAuthService _auth;
|
||||
|
||||
public SystemController(IDataStore data, Database conn, TokenAuthService auth)
|
||||
public SystemController(IDataStore data, IDatabase conn, TokenAuthService auth)
|
||||
{
|
||||
_data = data;
|
||||
_conn = conn;
|
||||
|
@@ -11,7 +11,7 @@ namespace PluralKit.API
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Database.InitStatic();
|
||||
InitUtils.InitStatic();
|
||||
CreateHostBuilder(args).Build().Run();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user