Skip to content

Commit

Permalink
Fixed configuratin worker
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Oct 28, 2022
1 parent b0fd450 commit 4c4c2b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/Backend/src/Authoring/Seed/SeedExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ public static class SeedExtensions
{
public static IServiceCollection AddSeedWorker(
this IServiceCollection services,
string pathToConfig = Settings.Confix.Authoring.Seed.AdminRequirement.Section)
string pathToConfig = Settings.Confix.Authoring.Seed.Section)
{
services
.AddOptions<AdminRequirementOptions>()
.BindConfiguration(pathToConfig);
services.AddOptions<SeedOptions>().BindConfiguration(pathToConfig);

services.AddHostedService<SeedWorker>();

Expand Down
5 changes: 0 additions & 5 deletions src/Backend/src/Common/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ public static class Mongo
public static class Seed
{
public const string Section = $"{Authoring.Section}:{nameof(Seed)}";

public static class AdminRequirement
{
public const string Section = $"{Seed.Section}:{nameof(AdminRequirement)}";
}
}

public static class Authentication
Expand Down

0 comments on commit 4c4c2b6

Please sign in to comment.