feat(espptemplatesync): метод обновление статуса Manager адаптирован на работу с RobotConfigurationService

This commit is contained in:
Mikhail Kuznetsov
2023-10-06 17:09:25 +10:00
parent 7e55659a7c
commit 5c818e6610
4 changed files with 62 additions and 16 deletions

View File

@@ -25,7 +25,9 @@ namespace PARR.DAL.Services.Implementations
public async Task<Template?> GetTemplateByNameAsync(string name)
{
return await GetWithIncludes().FirstOrDefaultAsync(t => t.Name == name);
return await GetWithIncludes()
.Include(t=>t.RobotConfigurations)
.FirstOrDefaultAsync(t => t.Name == name);
}
public IQueryable<Template> GetWithIncludes()