feat(api): RobotTaskController - добавлен параметр SetInProgressStatus, при выдаче задания роботу, сразу устанавливать статус "В работе"

This commit is contained in:
Mikhail Trubnikov
2024-08-01 14:21:28 +10:00
parent 0464aed769
commit cefbdcc8e6
3 changed files with 66 additions and 5 deletions

View File

@@ -78,13 +78,13 @@ namespace PARR.API.Controllers.V1
await robotHistoryService.CommitAsync();
}
var configToResonse = await robotConfigurationService.Get()
var configToResponse = await robotConfigurationService.Get()
.Include(t => t.Robot)
.Include(t => t.TaskStatus)
.Include(t => t.RobotStatus)
.FirstOrDefaultAsync(t => t.Id == taskId);
var response = mapper.Map<RobotConfigurationResponse>(configToResonse);
var response = mapper.Map<RobotConfigurationResponse>(configToResponse);
return Ok(new Response<RobotConfigurationResponse>(response, true));
}