исправление косяков
This commit is contained in:
		| @@ -35,7 +35,7 @@ public class VisaApplicationRequestsHandler( | ||||
|         return mapper.Map<List<VisaApplicationPreview>>(visaApplications); | ||||
|     } | ||||
|  | ||||
|     /// <summary> <inheritdoc cref="IVisaApplicationRequestsHandler.GetApplicationForApplicantAsync"/> </summary> | ||||
|     /// <inheritdoc cref="IVisaApplicationRequestsHandler.GetApplicationForApplicantAsync"/> | ||||
|     public async Task<VisaApplicationModel> GetApplicationForApplicantAsync(Guid id, CancellationToken cancellationToken) | ||||
|     { | ||||
|         var applicant = await applicants.FindByUserIdAsync(userIdProvider.GetUserId(), cancellationToken); | ||||
|   | ||||
| @@ -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<IClient, Client>(sp => new(baseAddress, sp.GetRequiredService<HttpClient>())); | ||||
|   | ||||
| @@ -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()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user