diff --git a/JetKarmaBot/Program.cs b/JetKarmaBot/Program.cs index 0e0f5f2..74817e7 100644 --- a/JetKarmaBot/Program.cs +++ b/JetKarmaBot/Program.cs @@ -29,7 +29,7 @@ namespace JetKarmaBot var dbOptions = new DbContextOptionsBuilder() .UseMySql(cfg.ConnectionString); - c.AddSingleton(() => new KarmaContext(dbOptions.Options)); + c.AddTransient(() => new KarmaContext(dbOptions.Options)); c.Add(); var bot = c.GetInstance(); diff --git a/perfusion b/perfusion index 845dbe7..a806f4d 160000 --- a/perfusion +++ b/perfusion @@ -1 +1 @@ -Subproject commit 845dbe77b217962a8ce98be50673aa408b081cda +Subproject commit a806f4d9fb9eb0e3036567304cabe1adf65d476c