From a55eff43fbe8e9e81dfae8de98873b6ca85c1c9b Mon Sep 17 00:00:00 2001 From: prtsie Date: Fri, 9 May 2025 19:25:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D1=81=D1=8F=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VisaApplications/Handlers/VisaApplicationRequestsHandler.cs | 2 +- SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs | 2 +- SchengenVisaApi/SchengenVisaApi/DependencyInjection.cs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SchengenVisaApi/ApplicationLayer/Services/VisaApplications/Handlers/VisaApplicationRequestsHandler.cs b/SchengenVisaApi/ApplicationLayer/Services/VisaApplications/Handlers/VisaApplicationRequestsHandler.cs index a67abd9..f7e4c17 100644 --- a/SchengenVisaApi/ApplicationLayer/Services/VisaApplications/Handlers/VisaApplicationRequestsHandler.cs +++ b/SchengenVisaApi/ApplicationLayer/Services/VisaApplications/Handlers/VisaApplicationRequestsHandler.cs @@ -35,7 +35,7 @@ public class VisaApplicationRequestsHandler( return mapper.Map>(visaApplications); } - /// + /// public async Task GetApplicationForApplicantAsync(Guid id, CancellationToken cancellationToken) { var applicant = await applicants.FindByUserIdAsync(userIdProvider.GetUserId(), cancellationToken); diff --git a/SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs b/SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs index e4ddbde..1953814 100644 --- a/SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs +++ b/SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs @@ -25,7 +25,7 @@ public static class Program private static void AddInfrastructure(this WebAssemblyHostBuilder builder) { - const string baseAddress = "https://localhost:44370"; + const string baseAddress = "https://localhost:7168"; builder.Services.AddScoped(_ => new HttpClient { BaseAddress = new(baseAddress) }); builder.Services.AddBlazorBootstrap(); builder.Services.AddScoped(sp => new(baseAddress, sp.GetRequiredService())); diff --git a/SchengenVisaApi/SchengenVisaApi/DependencyInjection.cs b/SchengenVisaApi/SchengenVisaApi/DependencyInjection.cs index 26d6fa5..3af50a0 100644 --- a/SchengenVisaApi/SchengenVisaApi/DependencyInjection.cs +++ b/SchengenVisaApi/SchengenVisaApi/DependencyInjection.cs @@ -25,6 +25,8 @@ public static class DependencyInjection var config = builder.Configuration; var environment = builder.Environment; + AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); + builder.Services .AddInfrastructure(config, environment.IsDevelopment()) .AddApplicationLayer(environment.IsDevelopment())