Fix various issues with proxying and webhook caching

This commit is contained in:
Ske
2019-07-10 23:16:17 +02:00
parent 8940226385
commit ca56fd419b
4 changed files with 61 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ namespace PluralKit.Bot
.AddTransient(_ => _config.GetSection("PluralKit").Get<CoreConfig>() ?? new CoreConfig())
.AddTransient(_ => _config.GetSection("PluralKit").GetSection("Bot").Get<BotConfig>() ?? new BotConfig())
.AddScoped<IDbConnection>(svc =>
.AddTransient<IDbConnection>(svc =>
{
var conn = new NpgsqlConnection(svc.GetRequiredService<CoreConfig>().Database);