Cleaned code
This commit is contained in:
@@ -28,7 +28,7 @@ public class AcceptFriendRequestEndpoint(UserService userService, UserFriendsRep
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
userFriend.IsAccepted = true;
|
||||
|
||||
UserFriend friend = new()
|
||||
@@ -37,7 +37,7 @@ public class AcceptFriendRequestEndpoint(UserService userService, UserFriendsRep
|
||||
FriendId = req.FriendId,
|
||||
IsAccepted = true
|
||||
};
|
||||
|
||||
|
||||
await userFriendsRepository.AddAsync(friend, ct);
|
||||
await userFriendsRepository.SaveChangesAsync(ct);
|
||||
await Send.OkAsync(ct);
|
||||
|
||||
Reference in New Issue
Block a user