fixed error caused by 415
This commit is contained in:
@@ -5,10 +5,10 @@ namespace BeReadyBackend.Specifications.Friends;
|
||||
|
||||
public class GetFriendRequestSpec : Specification<UserFriend>
|
||||
{
|
||||
public GetFriendRequestSpec(int friendId)
|
||||
public GetFriendRequestSpec(int userId)
|
||||
{
|
||||
Query
|
||||
.Include(x => x.User)
|
||||
.Where(x => !x.IsAccepted && x.FriendId == friendId);
|
||||
.Where(x => !x.IsAccepted && x.FriendId == userId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user