feat(api): RobotTaskController - добавлен параметр SetInProgressStatus, при выдаче задания роботу, сразу устанавливать статус "В работе"
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user