fix(api): AppInWork, при изменении расписания, отправлять задание в очередь на перераспределение
This commit is contained in:
@@ -377,6 +377,9 @@ namespace PARR.API.Controllers.V1
|
|||||||
if (request.Schedule.Count() != orig.EsppSchValues.Count())
|
if (request.Schedule.Count() != orig.EsppSchValues.Count())
|
||||||
isScheduleChanged = true;
|
isScheduleChanged = true;
|
||||||
|
|
||||||
|
if (request.IsAutoDistributionEnabled != orig.IsAutoDistributionEnabled)
|
||||||
|
isScheduleChanged = true;
|
||||||
|
|
||||||
request.Schedule.ForEach(requestSchedule =>
|
request.Schedule.ForEach(requestSchedule =>
|
||||||
{
|
{
|
||||||
var schExist = orig.EsppSchValues.FirstOrDefault(t => t.ApplicationsInWorkId == orig.Id
|
var schExist = orig.EsppSchValues.FirstOrDefault(t => t.ApplicationsInWorkId == orig.Id
|
||||||
|
|||||||
Reference in New Issue
Block a user