[reputation] KarmaMode now actually changes smth

This commit is contained in:
Andriy
2023-07-21 18:39:38 +03:00
parent 864f6d0f57
commit 613ac5ae22
2 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
using Kruzya.TelegramBot.Core;
using Kruzya.TelegramBot.Core.Options;
using Kruzya.TelegramBot.Core.Extensions;
using Kruzya.TelegramBot.Core.Service;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
@@ -21,7 +21,7 @@ public class Reputation : Module
var dsn = Configuration.GetConnectionString("Reputation");
services.AddDbContext<ReputationContext>(options => options.UseMySql(dsn, ServerVersion.AutoDetect(dsn)));
services.AddOption<KarmaMode>();
services.AddScoped<IReputation, ReputationService>();
services.AddScoped<IOption, KarmaMode>();
}
}