feat(templateGeneratorWorker): добавлена проверка на существование шаблона пришедшего на создание
This commit is contained in:
@@ -38,6 +38,7 @@ namespace PARR.DAL.DomainServices.Implementations
|
||||
.ThenInclude(t => t.FieldFilters)
|
||||
.Include(t => t.UnitFilters)
|
||||
.ThenInclude(t => t.RelationshipFilters)
|
||||
.Include(t => t.Group)
|
||||
.FirstOrDefaultAsync(t => t.Id == jobId);
|
||||
|
||||
if (job == null)
|
||||
@@ -94,6 +95,10 @@ namespace PARR.DAL.DomainServices.Implementations
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (job.Group?.IsUmbrella == true)
|
||||
query = query.Where(t => t.ChildUnits.Count() >= job.MinValueRelationships && t.ChildUnits.Count() <= job.MaxValueRelationships);
|
||||
|
||||
var newUnits = await query.Select(t => t.Id).ToListAsync();
|
||||
result.AddRange(newUnits);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user