Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Mar 7, 2023
2 parents a32d2a5 + 723c379 commit db76529
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Hammer/Hammer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<VersionPrefix>4.0.1</VersionPrefix>
<VersionPrefix>4.1.0</VersionPrefix>
</PropertyGroup>

<PropertyGroup Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' == ''">
Expand Down
5 changes: 3 additions & 2 deletions Hammer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ await Host.CreateDefaultBuilder(args)

services.AddHostedSingleton<LoggingService>();

services.AddDbContext<HammerContext>();
services.AddHostedSingleton<DatabaseService>();

services.AddSingleton<HttpClient>();
services.AddSingleton<ConfigurationService>();
services.AddSingleton<MailmanService>();
Expand All @@ -39,7 +42,6 @@ await Host.CreateDefaultBuilder(args)
services.AddHostedService<UserReactionService>();

services.AddHostedSingleton<BanService>();
services.AddHostedSingleton<DatabaseService>();
services.AddHostedSingleton<DiscordLogService>();
services.AddHostedSingleton<InfractionService>();
services.AddHostedSingleton<InfractionCooldownService>();
Expand All @@ -49,7 +51,6 @@ await Host.CreateDefaultBuilder(args)
services.AddHostedSingleton<MuteService>();
services.AddHostedSingleton<RuleService>();

services.AddDbContext<HammerContext>();

services.AddHostedSingleton<BotService>();
})
Expand Down

0 comments on commit db76529

Please sign in to comment.