Refactor data stores, merging the Store classes
This commit is contained in:
@@ -28,8 +28,7 @@ namespace PluralKit.Web
|
||||
|
||||
services
|
||||
.AddScoped<IDbConnection, NpgsqlConnection>(_ => new NpgsqlConnection(config.Database))
|
||||
.AddTransient<SystemStore>()
|
||||
.AddTransient<MemberStore>()
|
||||
.AddTransient<IDataStore, PostgresDataStore>()
|
||||
.AddSingleton(config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user