diff --git a/PARR.API/Contracts/V1/Responses/EsppScheduleResponse.cs b/PARR.API/Contracts/V1/Responses/EsppScheduleResponse.cs index 8b373efe..fab55922 100644 --- a/PARR.API/Contracts/V1/Responses/EsppScheduleResponse.cs +++ b/PARR.API/Contracts/V1/Responses/EsppScheduleResponse.cs @@ -57,6 +57,8 @@ public Guid Id { get; set; } public required string Value { get; set; } + + public Guid? DistributionPeriodId { get; set; } } public class EsppScheduleTypeConfigWithDataResponse diff --git a/PARR.GeneratorTemplates/Services/TemplateManager.cs b/PARR.GeneratorTemplates/Services/TemplateManager.cs index a7357e38..029c07ec 100644 --- a/PARR.GeneratorTemplates/Services/TemplateManager.cs +++ b/PARR.GeneratorTemplates/Services/TemplateManager.cs @@ -109,7 +109,7 @@ namespace PARR.GeneratorTemplates.Services var templates = CreateQueryTemplates(groupingHosts, query); //заполняем NextRun - templates = await templateDistributor.DistributeTemplateAsync(templates, appInWorkWg.Id); + templates = await templateDistributor.DistributeTemplateAsync(templates, appInWorkWg.Id, (Guid)group.Key!); // сохраняем foreach (var template in templates) diff --git a/PARR.TemplateDistributor/ITemplateDistributor.cs b/PARR.TemplateDistributor/ITemplateDistributor.cs index ceacc2a3..c28dd8ac 100644 --- a/PARR.TemplateDistributor/ITemplateDistributor.cs +++ b/PARR.TemplateDistributor/ITemplateDistributor.cs @@ -10,7 +10,7 @@ namespace PARR.TemplateDistributor /// /// /// - Task> DistributeTemplateAsync(List