How everyone after we already have a API to get requests pending, we should create API to get the.
Get the frame of the current user right.
Get current frames okay.
And right here with the user.
And let's change the name.
Get current.
All right.
Let us.
And only symbol like this.
So let's build a method to get current frames.
Will return current request model profile Actually right here we we cannot use the friend request model.
Is that what we should look up the user schema over here and look up the friend.
Right.
So for that reason we need to create a method inside a user.
I will go to here and create a method to get current.
Right or get friends right I'm going to use the idea over here.
Plus dot user model dot file.
Right.
And we should both.
And.
That's what we do right here if I buy My array.
I'm going to use array over here right.
And we need to populate the array like that.
And I will paste the reference.
And in here we need to delegate that job.
This dot user service dot get right.
And the current user ID over here.
Okay.
We should delegate it into the user service.
And let me use.
This right.
And remove.
And we can uh add a little bit of authentication.
I'm.
Right here.
If I say, we will say.
What is that?
Let's go to user.
Or right now we should accept a request.
Okay.
We should accept the request.
But let me copy the ID from the friend request over here.
And accept request.
Say, dude.
Okay, okay.
Let me get friends.
With my friends.
Over here.
We already got a friend.
Who?
Let me say why is, uh.
We have a friend over here.
What exactly happened?
So zone one had a friend right here.
Uh, but why is not an.
All right, let me try to take that.
I will close everything.
And right now, I will sign up with, uh, the Aurora account.
Okay.
I will set up with.
We got the internal server error.
Let me say, um.
All right.
Cast object.
Um.
It is a bit of error.
Let me click.
Right here.
All right.
Right.
Well.
What happened right now?
Use the validation file.
Friends.
Cast to object file for value.
Hmm.
The reason?
I think.
Because it is.
Okay.
Let me remove the file over here.
Let me say.
It already, uh, work right now.
Okay.
And let me copy this ID, and I will send a friend request.
Right.
Before that, let Make me a log in with that account and send the friend request.
With this access token.
Over here.
And copy the referral code on the side over here with a.
One over here.
Say.
Okay.
And copy the idea right here also.
And accept that.
Accept that and make sure we are move the token with the sign up.
Okay.
I hope you understand the flow.
Right.
And right now Let me say okay.
After that let's click on the user again.
We already got to right over here.
Right.
And we are back to this list.
Right.
Okay.
It's already work with this login.
And let me find the frame of the user right here.
Let me login with the account with access token and click on get my friend.
Say.
It's not work.
Um, let me see.
In here, we get the foreign file by the users and mobilize.
Let me try to console.log.
Result.
Mm.
We don't have any personalized for rain over here.
Hmm.
Let's see why.
Mm.
We don't have any for rain over here.
This ad right here.
Finally, over here will be finite also.
But we don't have a favorite.
Let me try to Council gives a right to say what actually happened.
Right here we got on defy.
It.
Meanwhile, we already published.
All the reason.
Because we should both written into the, uh.
Right.
Okay.
We need to move the object array right here into the array, because this is the array of.
Right?
Right.
So let me, uh, save us.
So here we already got four right with array.
Okay.
So this already work.
And right here we just need to check a little bit of if no user neutral nail, no file.
This is one.
User file and I will return the user ID of right over here to return back the frame.
Let me say.
Okay.
We already got this information about the current frame.
And right here it also have a nested for rain okay.
And we don't care about nested frame okay.
So for that reason later we can filter out rust using the form DTO.
And last for the video I hope you understand and make sure when we boost the URL right over here, we
will wrap the tie into the array.
So that's for the video.
I will see you.