From c7021f3292ea6a642d099eca124df51363762b91 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Wed, 31 May 2023 15:58:30 +0500 Subject: [PATCH] ProcessMapController fix SignalR --- AsbCloudWebApi/Controllers/ProcessMapController.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/AsbCloudWebApi/Controllers/ProcessMapController.cs b/AsbCloudWebApi/Controllers/ProcessMapController.cs index e97e954b..89ce8cd5 100644 --- a/AsbCloudWebApi/Controllers/ProcessMapController.cs +++ b/AsbCloudWebApi/Controllers/ProcessMapController.cs @@ -141,8 +141,7 @@ namespace AsbCloudWebApi.Controllers { value.IdUser = User.GetUserId() ?? -1; var result = await base.InsertAsync(value, token); - if (result.Value > 0) - await NotifyUsersBySignalR(value.IdWell, token); + await NotifyUsersBySignalR(value.IdWell, token); return result; } @@ -157,8 +156,7 @@ namespace AsbCloudWebApi.Controllers { value.IdUser = User.GetUserId() ?? -1; var result = await base.UpdateAsync(value, token); - if (result.Value > 0) - await NotifyUsersBySignalR(value.IdWell, token); + await NotifyUsersBySignalR(value.IdWell, token); return result; }