fix(api): AppInWork, при изменении расписания, отправлять задание в очередь на перераспределение

This commit is contained in:
Mikhail Trubnikov
2024-07-23 08:57:44 +10:00
parent 0b6bfdfbc6
commit aff865fd41

View File

@@ -377,6 +377,9 @@ namespace PARR.API.Controllers.V1
if (request.Schedule.Count() != orig.EsppSchValues.Count())
isScheduleChanged = true;
if (request.IsAutoDistributionEnabled != orig.IsAutoDistributionEnabled)
isScheduleChanged = true;
request.Schedule.ForEach(requestSchedule =>
{
var schExist = orig.EsppSchValues.FirstOrDefault(t => t.ApplicationsInWorkId == orig.Id