fix(aihitSyncer): при получении Host добавлен include рабочей группы, во время сравнения поля WorkGroup объекта из АИХ ИТ в ПАРР значение было null

This commit is contained in:
Mikhail Kuznetsov
2024-06-26 11:48:19 +10:00
parent 5e03605239
commit 2915af3f04

View File

@@ -40,7 +40,11 @@ namespace PARR.DAL.Services.Implementations
private IQueryable<Host> GetHostWithIncludeApps()
{
return EntitySet.Include(t => t.ApplicationsInHosts).ThenInclude(a => a.Application).ThenInclude(t => t!.ApplicationType);
return EntitySet
.Include(t => t.ApplicationsInHosts)
.ThenInclude(a => a.Application)
.ThenInclude(t => t!.ApplicationType)
.Include(t => t.WorkGroup);
}