Skip to content

Commit

Permalink
Fix call to get org name.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Jul 27, 2023
1 parent b2609fd commit 88ed5f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Server/Hubs/CircuitConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,12 @@ public async Task<Result<RemoteControlSessionEx>> RemoteControl(string deviceId,
return Result.Fail<RemoteControlSessionEx>(orgResult.Reason);
}

var organization = _dataService.GetOrganizationNameByUserName($"{User.UserName}");
await _agentHubContext.Clients.Client(serviceConnectionId).SendAsync("RemoteControl",
sessionId,
accessKey,
ConnectionId,
User.UserOptions?.DisplayName,
organization,
orgResult.Value,
User.OrganizationID);

return Result.Ok(session);
Expand Down

0 comments on commit 88ed5f8

Please sign in to comment.