feat(api): Контроллер изменения статуса задания робота, принимает робот ИД

This commit is contained in:
Mikhail Trubnikov
2026-05-26 12:24:44 +10:00
parent b4946aebd7
commit dfaa4b17c0
2 changed files with 8 additions and 1 deletions

View File

@@ -72,7 +72,8 @@ namespace PARR.API.Controllers.V1
HistoryLevel = (int)historyLevel,
TaskStatusCode = config.TaskStatusCode,
RobotConfigurationId = config.Id,
RobotIp = clientService.GetClientIp()?.ToString()
RobotIp = clientService.GetClientIp()?.ToString(),
RobotId = request.RobotId
};
await robotHistoryService.CreateAsync(history);
await robotHistoryService.CommitAsync();