From b664d1318355644b9e0f3f4e012a6379c5092492 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Fri, 23 Feb 2024 00:31:26 +0200 Subject: [PATCH] Fix --- src/BUTR.CrashReportServer/Services/DatabaseMigrator.cs | 6 ++---- src/BUTR.CrashReportServer/Startup.cs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/BUTR.CrashReportServer/Services/DatabaseMigrator.cs b/src/BUTR.CrashReportServer/Services/DatabaseMigrator.cs index 1f06790..8dc3413 100644 --- a/src/BUTR.CrashReportServer/Services/DatabaseMigrator.cs +++ b/src/BUTR.CrashReportServer/Services/DatabaseMigrator.cs @@ -1,5 +1,4 @@ -/* -using BUTR.CrashReportServer.Contexts; +using BUTR.CrashReportServer.Contexts; using BUTR.CrashReportServer.Models.Database; using BUTR.CrashReportServer.Utils; @@ -106,5 +105,4 @@ DELETE FROM json_entity } }); } -} -*/ \ No newline at end of file +} \ No newline at end of file diff --git a/src/BUTR.CrashReportServer/Startup.cs b/src/BUTR.CrashReportServer/Startup.cs index 311144e..675eb79 100644 --- a/src/BUTR.CrashReportServer/Startup.cs +++ b/src/BUTR.CrashReportServer/Startup.cs @@ -45,7 +45,7 @@ public void ConfigureServices(IServiceCollection services) services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); - services.AddHostedService(); + //services.AddHostedService(); services.AddDbContextFactory(x => x.UseSqlite(_configuration.GetConnectionString("Main")));