Cleaned code

This commit is contained in:
2026-03-01 14:50:01 +01:00
parent 70de2a5a66
commit 2e868889fc
41 changed files with 94 additions and 98 deletions
@@ -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);