From e18e4e927367051653ea864bb360433fe702dfda Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Wed, 25 Oct 2023 16:30:35 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=B2=D0=BD=D1=83?= =?UTF-8?q?=D1=82=D1=80=D0=B8=20AddToGroup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudWebApi/SignalR/ReportsHub.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/AsbCloudWebApi/SignalR/ReportsHub.cs b/AsbCloudWebApi/SignalR/ReportsHub.cs index 18e89473..1097c5ef 100644 --- a/AsbCloudWebApi/SignalR/ReportsHub.cs +++ b/AsbCloudWebApi/SignalR/ReportsHub.cs @@ -37,11 +37,8 @@ namespace AsbCloudWebApi.SignalR var state = work?.CurrentState; if (state is not null) { - progress = new ReportProgressDto - { - Operation = state.State, - Progress = (float)state.Progress, - }; + progress.Operation = state.State; + progress.Progress = (float)state.Progress; } await Clients.Group(groupName).SendAsync(