mirror of
https://github.com/Govor-team/Govor.git
synced 2026-09-21 10:19:43 +00:00
Stable server
was added removing messages many fixes bugs and moving to result pattern from throwing exceptions
This commit is contained in:
@@ -82,7 +82,7 @@ public class FriendsHub : Hub
|
||||
return HubResult<object>.Error(result.Error.ToString());
|
||||
|
||||
var friendship = result.Value;
|
||||
var dto = _mapper.Map<FriendshipDto>(friendship);
|
||||
var dto = _mapper.Map<FriendshipDto>(friendship);
|
||||
|
||||
await Clients.Group(targetUserId.ToString())
|
||||
.SendAsync("FriendRequestReceived", dto);
|
||||
@@ -127,7 +127,7 @@ public class FriendsHub : Hub
|
||||
|
||||
var friendship = result.Value;
|
||||
|
||||
var dto = _mapper.Map<FriendshipDto>(friendship);
|
||||
var dto = _mapper.Map<FriendshipDto>(friendship);
|
||||
|
||||
await Clients.Group(userId.ToString())
|
||||
.SendAsync("FriendRequestAccepted", dto);
|
||||
|
||||
Reference in New Issue
Block a user