feat(api): в респонс шаблона добавлены поля с расписанием

This commit is contained in:
Mikhail Trubnikov
2023-11-27 16:42:15 +10:00
parent 2bdec66fd4
commit 8f385ed2d2
5 changed files with 22 additions and 4 deletions

View File

@@ -124,7 +124,10 @@ namespace PARR.DAL.TransformServices
public async Task<List<DateTimeOffset>> GetNextScheduleAsync(Guid applicationInWorkId, DateTimeOffset lastRun)
{
return GetNextSchedule(await GetEsppSchedule(applicationInWorkId), lastRun);
var esppSchedule = await GetEsppSchedule(applicationInWorkId);
var nextSchedule = GetNextSchedule(esppSchedule, lastRun);
return nextSchedule;
}