Fix run time

This commit is contained in:
2025-08-14 23:28:21 +07:00
parent 8d37b04d3f
commit 580ce4d9c9
3 changed files with 27 additions and 2 deletions

View File

@@ -148,6 +148,11 @@ public static class ApiBootstrap
options.ConnectionString = postgreSqlConnectionString;
options.Invariant = "Npgsql";
})
.AddAdoNetGrainStorage("platform-summary-store", options =>
{
options.ConnectionString = postgreSqlConnectionString;
options.Invariant = "Npgsql";
})
.ConfigureServices(services =>
{
// Register existing services for Orleans DI
@@ -173,7 +178,7 @@ public static class ApiBootstrap
services.AddScoped<ISettingsService, SettingsService>();
services.AddScoped<IUserService, UserService>();
services.AddScoped<IGeneticService, GeneticService>();
services.AddSingleton<IBotService, BotService>();
services.AddScoped<IBotService, BotService>();
services.AddScoped<IWorkerService, WorkerService>();
services.AddScoped<ISynthPredictionService, SynthPredictionService>();
services.AddScoped<ISynthApiClient, SynthApiClient>();