feat(api): в респонс истории робота, добавил инфу о роботе
This commit is contained in:
@@ -58,6 +58,8 @@ namespace PARR.API.Controllers.V1
|
||||
IQueryable<RobotHistory> query = robotHistoryService.Get()
|
||||
.Include(t => t.RobotConfiguration)
|
||||
.ThenInclude(t => t!.Template)
|
||||
.Include(t => t.RobotConfiguration)
|
||||
.ThenInclude(t => t!.Robot)
|
||||
.Include(t => t.RobotHistoryLevel)
|
||||
.Include(t => t.StatusTask)
|
||||
.OrderByDescending(t => t.DateCreated);
|
||||
@@ -116,6 +118,8 @@ namespace PARR.API.Controllers.V1
|
||||
var createdObj = await robotHistoryService.Get()
|
||||
.Include(t => t.RobotConfiguration)
|
||||
.ThenInclude(t => t!.Template)
|
||||
.Include(t => t.RobotConfiguration)
|
||||
.ThenInclude(t => t!.Robot)
|
||||
.Include(t => t.RobotHistoryLevel)
|
||||
.Include(t => t.StatusTask)
|
||||
.FirstOrDefaultAsync(t => t.Id == history.Id);
|
||||
|
||||
Reference in New Issue
Block a user