From 54d58779130c3cb736a314ab28ed7a3962b07b1f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 00:25:53 +0000 Subject: [PATCH] Automated dotnet-format update --- .../JsonHandlerV13.cs | 2 +- .../Migrations/20241009200831_NewMetadata.cs | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/BUTR.CrashReport.Server.v13/JsonHandlerV13.cs b/src/BUTR.CrashReport.Server.v13/JsonHandlerV13.cs index 10dc3a9..d0cab24 100644 --- a/src/BUTR.CrashReport.Server.v13/JsonHandlerV13.cs +++ b/src/BUTR.CrashReport.Server.v13/JsonHandlerV13.cs @@ -72,7 +72,7 @@ public async Task UploadJsonAsync(ControllerBase controller, Canc controller.Request.Body = await _gZipCompressor.DecompressAsync(controller.Request.Body, ct); else controller.Request.EnableBuffering(); - + if (await controller.HttpContext.Request.ReadFromJsonAsync(_jsonSerializerOptions, ct) is not { CrashReport: { } crashReport, LogSources: { } logSources }) { _logger.LogWarning("Failed to read JSON body"); diff --git a/src/BUTR.CrashReport.Server/Migrations/20241009200831_NewMetadata.cs b/src/BUTR.CrashReport.Server/Migrations/20241009200831_NewMetadata.cs index 8e947f3..7ea047e 100644 --- a/src/BUTR.CrashReport.Server/Migrations/20241009200831_NewMetadata.cs +++ b/src/BUTR.CrashReport.Server/Migrations/20241009200831_NewMetadata.cs @@ -19,7 +19,7 @@ protected override void Up(MigrationBuilder migrationBuilder) migrationBuilder.Sql(""" UPDATE file_entity fe SET crash_report_id = (SELECT ie.crash_report_id FROM id_entity ie WHERE ie.file_id = fe.file_id) - """); + """); migrationBuilder.DropForeignKey( name: "FK_file_entity_id_entity_file_id", table: "file_entity"); @@ -29,8 +29,8 @@ USING file_entity T2 WHERE T1.ctid < T2.ctid AND T1.crash_report_id = T2.crash_report_id; """); - - + + migrationBuilder.AddColumn( name: "crash_report_id", table: "json_entity", @@ -75,8 +75,8 @@ WHERE T1.ctid < T2.ctid name: "json_entity_pkey", table: "json_entity", column: "crash_report_id"); - - + + migrationBuilder.CreateTable( name: "id_test_entity", columns: table => new @@ -125,7 +125,7 @@ WHERE T1.ctid < T2.ctid nullable: false, defaultValue: (byte) 0); - + migrationBuilder.AddForeignKey( name: "report_entity_html_entity_fkey", table: "file_entity", @@ -140,8 +140,8 @@ WHERE T1.ctid < T2.ctid principalTable: "id_entity", principalColumn: "crash_report_id", onDelete: ReferentialAction.Cascade); - - + + migrationBuilder.AddForeignKey( name: "html_entity_id_entity_fkey", table: "id_test_entity", @@ -163,7 +163,7 @@ WHERE T1.ctid < T2.ctid principalTable: "id_entity", principalColumn: "crash_report_id", onDelete: ReferentialAction.Cascade); - + migrationBuilder.RenameTable( name: "id_entity",