Skip to content

Commit

Permalink
Automated dotnet-format update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 11, 2024
1 parent f725df1 commit 54d5877
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/BUTR.CrashReport.Server.v13/JsonHandlerV13.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public async Task<IActionResult> UploadJsonAsync(ControllerBase controller, Canc
controller.Request.Body = await _gZipCompressor.DecompressAsync(controller.Request.Body, ct);
else
controller.Request.EnableBuffering();

if (await controller.HttpContext.Request.ReadFromJsonAsync<CrashReportUploadBodyV13>(_jsonSerializerOptions, ct) is not { CrashReport: { } crashReport, LogSources: { } logSources })
{
_logger.LogWarning("Failed to read JSON body");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -29,8 +29,8 @@ USING file_entity T2
WHERE T1.ctid < T2.ctid
AND T1.crash_report_id = T2.crash_report_id;
""");


migrationBuilder.AddColumn<Guid>(
name: "crash_report_id",
table: "json_entity",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -163,7 +163,7 @@ WHERE T1.ctid < T2.ctid
principalTable: "id_entity",
principalColumn: "crash_report_id",
onDelete: ReferentialAction.Cascade);


migrationBuilder.RenameTable(
name: "id_entity",
Expand Down

0 comments on commit 54d5877

Please sign in to comment.