Update env conf

This commit is contained in:
2025-05-16 22:51:27 +07:00
parent 1cfb83f0b1
commit e866ef3303
2 changed files with 4 additions and 6 deletions

View File

@@ -38,8 +38,6 @@
"ButtonExpirationMinutes": 2
},
"AllowedHosts": "*",
"Workers": {
"BotManager": true,
"BalancesTracking": true
}
"WorkerBotManager": true,
"WorkerBalancesTracking": true
}

View File

@@ -143,12 +143,12 @@ public static class ApiBootstrap
private static IServiceCollection AddWorkers(this IServiceCollection services, IConfiguration configuration)
{
if (configuration.GetValue<bool>("Workers:BotManager", false))
if (configuration.GetValue<bool>("WorkerBotManager", false))
{
services.AddHostedService<BotManagerWorker>();
}
if (configuration.GetValue<bool>("Workers:BalancesTracking", false))
if (configuration.GetValue<bool>("WorkerBalancesTracking", false))
{
services.AddHostedService<BalanceTrackingWorker>();
}