Skip to content

Commit

Permalink
fix: allow service registration when scrape is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
iPromKnight authored Jan 1, 2025
1 parent f8af7f9 commit cd45854
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ public static IServiceCollection AddStartupHostedServices(this IServiceCollectio
public static IServiceCollection ConditionallyRegisterDmmJob(this IServiceCollection services,
ZileanConfiguration configuration)
{
if (configuration.Dmm.EnableScraping)
{
services.AddTransient<DmmSyncJob>();
services.AddTransient<GenericSyncJob>();
services.AddSingleton<SyncOnDemandState>();
}
services.AddTransient<DmmSyncJob>();
services.AddTransient<GenericSyncJob>();
services.AddSingleton<SyncOnDemandState>();

return services;
}
Expand Down

0 comments on commit cd45854

Please sign in to comment.