forked from ddrilling/AsbCloudServer
ProcessMapController fix SignalR
This commit is contained in:
parent
6b14ea9a4d
commit
c7021f3292
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user