diff --git a/PARR.EsppScheduleSync/ScheduleSyncher.cs b/PARR.EsppScheduleSync/ScheduleSyncher.cs index 6a499c98..3b8bf0b1 100644 --- a/PARR.EsppScheduleSync/ScheduleSyncher.cs +++ b/PARR.EsppScheduleSync/ScheduleSyncher.cs @@ -133,7 +133,7 @@ namespace PARR.EsppScheduleSync if (esppSchTypeConfigService == null) throw new Exception($"Не найден сервис: {nameof(IEsppSchTypeConfigService)}"); - var esppSchedule = esppSchTypeConfigService.GetEsppScheduleDto(template.JobId); + var esppSchedule = esppSchTypeConfigService.GetEsppScheduleDto(template.Job!.GroupId); if (esppSchedule == null) { logger.LogError($"Не смог получить расписание из БД для шаблона templateId: {template.Id}, {template.Name}");