diff --git a/src/Mocha/examples/Demo/Demo.AppHost/Demo.AppHost.csproj b/src/Mocha/examples/Demo/Demo.AppHost/Demo.AppHost.csproj index 2493b232e27..e40d75862d6 100644 --- a/src/Mocha/examples/Demo/Demo.AppHost/Demo.AppHost.csproj +++ b/src/Mocha/examples/Demo/Demo.AppHost/Demo.AppHost.csproj @@ -4,7 +4,6 @@ Exe HotChocolate.Demo.AppHost HotChocolate.Demo.AppHost - enable diff --git a/src/Mocha/examples/Demo/Demo.Billing/Handlers/ProcessPartialRefundCommandHandler.cs b/src/Mocha/examples/Demo/Demo.Billing/Handlers/ProcessPartialRefundCommandHandler.cs index 596aab2265c..3189a0be319 100644 --- a/src/Mocha/examples/Demo/Demo.Billing/Handlers/ProcessPartialRefundCommandHandler.cs +++ b/src/Mocha/examples/Demo/Demo.Billing/Handlers/ProcessPartialRefundCommandHandler.cs @@ -52,11 +52,8 @@ public async ValueTask HandleAsync( refund.ProcessedAt = DateTimeOffset.UtcNow; // Update invoice status if exists - partial refund doesn't fully refund the invoice - if (invoice is not null) - { - // Keep invoice as Paid but we've recorded the partial refund - invoice.UpdatedAt = DateTimeOffset.UtcNow; - } + // Keep invoice as Paid but we've recorded the partial refund + invoice?.UpdatedAt = DateTimeOffset.UtcNow; await db.SaveChangesAsync(cancellationToken); diff --git a/src/Mocha/examples/Demo/Demo.ServiceDefaults/Demo.ServiceDefaults.csproj b/src/Mocha/examples/Demo/Demo.ServiceDefaults/Demo.ServiceDefaults.csproj index 5733be57d6f..a225670b0db 100644 --- a/src/Mocha/examples/Demo/Demo.ServiceDefaults/Demo.ServiceDefaults.csproj +++ b/src/Mocha/examples/Demo/Demo.ServiceDefaults/Demo.ServiceDefaults.csproj @@ -2,8 +2,6 @@ HotChocolate.Demo.ServiceDefaults HotChocolate.Demo.ServiceDefaults - enable - enable true diff --git a/src/Mocha/examples/Demo/Directory.Build.props b/src/Mocha/examples/Demo/Directory.Build.props index 53e0c925dc7..44f5bee67b9 100644 --- a/src/Mocha/examples/Demo/Directory.Build.props +++ b/src/Mocha/examples/Demo/Directory.Build.props @@ -2,6 +2,7 @@ false net10.0 + enable enable diff --git a/src/Mocha/examples/ExceptionPolicies/ExceptionPolicies.csproj b/src/Mocha/examples/ExceptionPolicies/ExceptionPolicies.csproj index 5719a995f08..ed515c9cd73 100644 --- a/src/Mocha/examples/ExceptionPolicies/ExceptionPolicies.csproj +++ b/src/Mocha/examples/ExceptionPolicies/ExceptionPolicies.csproj @@ -2,6 +2,7 @@ Exe net10.0 + enable enable diff --git a/src/Mocha/examples/PostgresTransport/Directory.Build.props b/src/Mocha/examples/PostgresTransport/Directory.Build.props index ac7170928de..e2ecaf9af06 100644 --- a/src/Mocha/examples/PostgresTransport/Directory.Build.props +++ b/src/Mocha/examples/PostgresTransport/Directory.Build.props @@ -3,5 +3,7 @@ net10.0 net10.0 + enable + enable diff --git a/src/Mocha/examples/PostgresTransport/PostgresTransport.AppHost/PostgresTransport.AppHost.csproj b/src/Mocha/examples/PostgresTransport/PostgresTransport.AppHost/PostgresTransport.AppHost.csproj index fc517ed03a7..85920fb30e9 100644 --- a/src/Mocha/examples/PostgresTransport/PostgresTransport.AppHost/PostgresTransport.AppHost.csproj +++ b/src/Mocha/examples/PostgresTransport/PostgresTransport.AppHost/PostgresTransport.AppHost.csproj @@ -3,7 +3,6 @@ Exe PostgresTransport.AppHost - enable diff --git a/src/Mocha/examples/PostgresTransport/PostgresTransport.ServiceDefaults/PostgresTransport.ServiceDefaults.csproj b/src/Mocha/examples/PostgresTransport/PostgresTransport.ServiceDefaults/PostgresTransport.ServiceDefaults.csproj index 2e00ab24ba8..8ef3a778457 100644 --- a/src/Mocha/examples/PostgresTransport/PostgresTransport.ServiceDefaults/PostgresTransport.ServiceDefaults.csproj +++ b/src/Mocha/examples/PostgresTransport/PostgresTransport.ServiceDefaults/PostgresTransport.ServiceDefaults.csproj @@ -1,8 +1,6 @@ PostgresTransport.ServiceDefaults - enable - enable true