feat(dal,api,nextRun,templateGenerator,templateActivator): IsUnused вынесена в TemplateStatusType
This commit is contained in:
@@ -3,6 +3,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.BLL.Services.Interfaces;
|
||||
using PARR.Common.Domain;
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.DAL.Services.Interfaces.Job;
|
||||
@@ -81,7 +82,7 @@ namespace PARR.NextRun
|
||||
|
||||
// Загружаем только шаблоны текущей группы где nextRun в БД не равен расчетному
|
||||
var templatesToUpdate = await templateService.Get()
|
||||
.Where(t => t.IsUnused == false && t.Job!.GroupId == group.Id && t.NextRun != nextRun)
|
||||
.Where(t => t.StatusTypeId == TemplateStatusTypeEnum.Used && t.Job!.GroupId == group.Id && t.NextRun != nextRun)
|
||||
.ToListAsync();
|
||||
|
||||
if (!templatesToUpdate.Any())
|
||||
|
||||
Reference in New Issue
Block a user