fix: Исправил тип параметра fullname в методе SearchEmployees и добавил комментарий к полю _employees
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m0s

This commit is contained in:
2026-03-26 03:02:26 +03:00
parent 0b329ec9ec
commit 7a1eddbe51
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ public class ScheduleController(ModeusService modeusService, ModeusEmployeeServi
/// <response code="503">Сервис сотрудников не инициализирован</response>
[HttpGet]
[Route("searchemployee")]
public async Task<IActionResult> SearchEmployees(string fullname = "")
public async Task<IActionResult> SearchEmployees(string? fullname)
{
if (!modeusEmployeeService.IsInitialized())
return StatusCode(503, "Сервис сотрудников не инициализирован, попробуйте позже.");

View File

@@ -6,7 +6,7 @@ namespace SfeduSchedule.Services;
public class ModeusEmployeeService(ISchedulerFactory schedulerFactory)
: IHostedService
{
private Dictionary<string, (string, List<string>)> _employees = []; //
private Dictionary<string, (string, List<string>)> _employees = []; // ФИО (ИД, Список должностей)
private Task? _backgroundTask;
private CancellationTokenSource? _cts;
private readonly string _employeesFilePath = Path.Combine(Path.Combine(AppContext.BaseDirectory, AppConsts.DataFolderName), AppConsts.EmployeesFileName);