fix(esppScheduleSync): исправлен Id объекта передаваемого для поиска расписания, вместо GroupId передавали JobId
This commit is contained in:
@@ -133,7 +133,7 @@ namespace PARR.EsppScheduleSync
|
|||||||
if (esppSchTypeConfigService == null)
|
if (esppSchTypeConfigService == null)
|
||||||
throw new Exception($"Не найден сервис: {nameof(IEsppSchTypeConfigService)}");
|
throw new Exception($"Не найден сервис: {nameof(IEsppSchTypeConfigService)}");
|
||||||
|
|
||||||
var esppSchedule = esppSchTypeConfigService.GetEsppScheduleDto(template.JobId);
|
var esppSchedule = esppSchTypeConfigService.GetEsppScheduleDto(template.Job!.GroupId);
|
||||||
if (esppSchedule == null)
|
if (esppSchedule == null)
|
||||||
{
|
{
|
||||||
logger.LogError($"Не смог получить расписание из БД для шаблона templateId: {template.Id}, {template.Name}");
|
logger.LogError($"Не смог получить расписание из БД для шаблона templateId: {template.Id}, {template.Name}");
|
||||||
|
|||||||
Reference in New Issue
Block a user