feat(api): статистика отображается в часовом поясе клиента

This commit is contained in:
Mikhail Trubnikov
2026-03-05 10:19:54 +10:00
parent 7c9d9b34e5
commit b2b5516326
30 changed files with 1333 additions and 2011 deletions

View File

@@ -226,7 +226,7 @@ namespace PARR.EsppScheduleSync
//nextRunWithTimeZone = nextRunModifierService.GetNextRunByAccountRobotTimeZone(template.NextRun);
var nextRunService = scope.ServiceProvider.GetRequiredService<INextRunServiceV2>();
var nextRunService = scope.ServiceProvider.GetRequiredService<INextRunService>();
//var shortcodeService = scope.ServiceProvider.GetRequiredService<IShortcodesService>();
//responseArea = shortcodeService.ApplyShortcodesAsync(template.Job!.ResponseAreaMask, template).GetAwaiter().GetResult();
@@ -327,7 +327,7 @@ namespace PARR.EsppScheduleSync
private async Task<DateTimeOffset?> CalcNextRunWithRobotTzAsync(Guid templateId)
{
using var scope = serviceProvider.CreateScope();
var nextRunService = scope.ServiceProvider.GetRequiredService<INextRunServiceV2>();
var nextRunService = scope.ServiceProvider.GetRequiredService<INextRunService>();
var nextRun = await nextRunService.GetNextRunForTemplateAsync(templateId, isNew: false);