Update perfusion commit id + fix bug

This commit is contained in:
Nikolay Kochulin 2019-02-05 22:47:15 +03:00
parent fdfea2bbb1
commit 0a3d969bec
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace JetKarmaBot
var dbOptions = new DbContextOptionsBuilder<KarmaContext>() var dbOptions = new DbContextOptionsBuilder<KarmaContext>()
.UseMySql(cfg.ConnectionString); .UseMySql(cfg.ConnectionString);
c.AddSingleton(() => new KarmaContext(dbOptions.Options)); c.AddTransient(() => new KarmaContext(dbOptions.Options));
c.Add<JetKarmaBot>(); c.Add<JetKarmaBot>();
var bot = c.GetInstance<JetKarmaBot>(); var bot = c.GetInstance<JetKarmaBot>();

@ -1 +1 @@
Subproject commit 845dbe77b217962a8ce98be50673aa408b081cda Subproject commit a806f4d9fb9eb0e3036567304cabe1adf65d476c