feat(api,core,domain): StatWorkloadTemplate - статистика загруженности, шаблоны
This commit is contained in:
@@ -14,8 +14,8 @@ using PARR.Core.Services.Workload.Interfaces;
|
||||
using PARR.Domain.Common.Roles;
|
||||
using PARR.Domain.Entities.Base.History;
|
||||
using PARR.Domain.Enums;
|
||||
using PARR.Domain.Enums.Workload;
|
||||
using PARR.Domain.Exceptions;
|
||||
using static PARR.API.Contracts.V1.ApiRoutes;
|
||||
|
||||
namespace PARR.API.Controllers.V1.Statistics
|
||||
{
|
||||
@@ -153,7 +153,7 @@ namespace PARR.API.Controllers.V1.Statistics
|
||||
var localTime = utcNow.ToOffset(offset);
|
||||
var dateStart = DateOnly.FromDateTime(localTime.Date);
|
||||
|
||||
var report = await workloadService.GetWorkloadReport(reportType, dateStart, durationDays, offset, filter?.Trim());
|
||||
var report = await workloadService.GetWorkloadReportAsync(reportType, dateStart, durationDays, offset, filter?.Trim());
|
||||
|
||||
if (report == null)
|
||||
return BadRequest(new Response<string?>(null, false, new List<ErrorModel> { new ErrorModel { Message = "Необходимо сформировать отчетность." } }, "empty"));
|
||||
|
||||
Reference in New Issue
Block a user