feat(templateMatcher): в процесс синхронизации неиспользованных шаблонов добавлены шаблоны со статусом Error, чтобы поведение было схожим.
This commit is contained in:
@@ -473,7 +473,7 @@ internal class SimpleTemplateSynchronizer : ITemplateSynchronizer
|
||||
// Находим все шаблоны со статусом Unused
|
||||
var unusedTemplates = await templateService.Get()
|
||||
.Include(t => t.Unit)
|
||||
.Where(t => t.StatusTypeId == TemplateStatusTypeEnum.Unused)
|
||||
.Where(t => t.StatusTypeId == TemplateStatusTypeEnum.Unused || t.StatusTypeId == TemplateStatusTypeEnum.Error)
|
||||
.ToListAsync();
|
||||
|
||||
if (!unusedTemplates.Any())
|
||||
@@ -519,7 +519,7 @@ internal class SimpleTemplateSynchronizer : ITemplateSynchronizer
|
||||
LastRun = template.LastRun,
|
||||
NextRun = nextRun,
|
||||
Index = null,
|
||||
StatusTypeId = TemplateStatusTypeEnum.Unused,
|
||||
StatusTypeId = template.StatusTypeId,
|
||||
Initiator = initiator,
|
||||
UnitsInTemplate = new List<Guid>()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user