WEBVTT

00:00.480 --> 00:11.720
How everyone after we already have a API to get requests pending, we should create API to get the.

00:14.960 --> 00:18.160
Get the frame of the current user right.

00:18.560 --> 00:22.120
Get current frames okay.

00:24.240 --> 00:26.560
And right here with the user.

00:27.680 --> 00:28.680
And let's change the name.

00:28.680 --> 00:29.600
Get current.

00:31.080 --> 00:31.800
All right.

00:32.800 --> 00:33.560
Let us.

00:35.840 --> 00:38.240
And only symbol like this.

00:41.640 --> 00:44.400
So let's build a method to get current frames.

00:54.040 --> 01:05.870
Will return current request model profile Actually right here we we cannot use the friend request model.

01:06.150 --> 01:12.710
Is that what we should look up the user schema over here and look up the friend.

01:12.750 --> 01:13.270
Right.

01:13.590 --> 01:18.070
So for that reason we need to create a method inside a user.

01:21.470 --> 01:29.470
I will go to here and create a method to get current.

01:31.670 --> 01:38.590
Right or get friends right I'm going to use the idea over here.

01:41.750 --> 01:44.470
Plus dot user model dot file.

01:46.750 --> 01:47.270
Right.

01:49.030 --> 01:50.470
And we should both.

01:52.710 --> 01:53.070
And.

01:59.070 --> 02:02.660
That's what we do right here if I buy My array.

02:08.100 --> 02:11.620
I'm going to use array over here right.

02:11.980 --> 02:17.780
And we need to populate the array like that.

02:19.660 --> 02:22.340
And I will paste the reference.

02:23.100 --> 02:25.980
And in here we need to delegate that job.

02:28.700 --> 02:31.540
This dot user service dot get right.

02:32.060 --> 02:34.940
And the current user ID over here.

02:35.580 --> 02:36.020
Okay.

02:36.060 --> 02:39.940
We should delegate it into the user service.

02:42.660 --> 02:45.940
And let me use.

02:51.620 --> 02:52.580
This right.

02:53.900 --> 02:56.020
And remove.

02:57.620 --> 03:02.540
And we can uh add a little bit of authentication.

03:02.540 --> 03:02.650
I'm.

03:05.410 --> 03:06.010
Right here.

03:06.010 --> 03:09.290
If I say, we will say.

03:11.970 --> 03:13.090
What is that?

03:22.050 --> 03:23.370
Let's go to user.

03:33.130 --> 03:36.210
Or right now we should accept a request.

03:36.250 --> 03:36.730
Okay.

03:37.410 --> 03:38.770
We should accept the request.

03:38.770 --> 03:44.610
But let me copy the ID from the friend request over here.

04:00.050 --> 04:01.370
And accept request.

04:04.130 --> 04:06.850
Say, dude.

04:06.850 --> 04:08.090
Okay, okay.

04:08.090 --> 04:09.810
Let me get friends.

04:12.250 --> 04:13.730
With my friends.

04:15.970 --> 04:16.730
Over here.

04:16.730 --> 04:18.290
We already got a friend.

04:18.970 --> 04:19.250
Who?

04:27.050 --> 04:29.450
Let me say why is, uh.

04:40.330 --> 04:42.210
We have a friend over here.

04:45.050 --> 04:46.450
What exactly happened?

04:59.090 --> 05:03.810
So zone one had a friend right here.

05:05.520 --> 05:08.960
Uh, but why is not an.

05:09.000 --> 05:12.240
All right, let me try to take that.

05:12.520 --> 05:13.800
I will close everything.

05:14.760 --> 05:18.040
And right now, I will sign up with, uh, the Aurora account.

05:18.600 --> 05:18.960
Okay.

05:19.000 --> 05:21.720
I will set up with.

05:23.080 --> 05:25.280
We got the internal server error.

05:29.480 --> 05:31.440
Let me say, um.

05:32.760 --> 05:33.400
All right.

05:33.440 --> 05:34.920
Cast object.

05:40.080 --> 05:40.480
Um.

05:53.960 --> 05:55.680
It is a bit of error.

05:57.600 --> 05:58.440
Let me click.

06:02.800 --> 06:03.320
Right here.

06:03.760 --> 06:04.360
All right.

06:06.070 --> 06:06.710
Right.

06:09.230 --> 06:09.710
Well.

06:11.750 --> 06:12.950
What happened right now?

06:15.470 --> 06:17.390
Use the validation file.

06:17.390 --> 06:18.310
Friends.

06:18.350 --> 06:21.990
Cast to object file for value.

06:24.270 --> 06:24.750
Hmm.

06:29.190 --> 06:30.190
The reason?

06:31.150 --> 06:31.590
I think.

06:31.590 --> 06:33.630
Because it is.

06:33.630 --> 06:34.110
Okay.

06:34.670 --> 06:36.830
Let me remove the file over here.

06:45.750 --> 06:46.830
Let me say.

06:49.190 --> 06:52.950
It already, uh, work right now.

06:53.070 --> 06:53.590
Okay.

06:54.710 --> 06:59.670
And let me copy this ID, and I will send a friend request.

07:01.550 --> 07:02.150
Right.

07:04.030 --> 07:15.620
Before that, let Make me a log in with that account and send the friend request.

07:16.580 --> 07:17.940
With this access token.

07:24.300 --> 07:24.860
Over here.

07:25.460 --> 07:32.020
And copy the referral code on the side over here with a.

07:36.500 --> 07:37.340
One over here.

07:39.700 --> 07:40.300
Say.

07:42.340 --> 07:42.860
Okay.

07:42.900 --> 07:45.340
And copy the idea right here also.

07:46.420 --> 07:47.700
And accept that.

07:50.220 --> 07:57.780
Accept that and make sure we are move the token with the sign up.

08:03.140 --> 08:03.460
Okay.

08:03.460 --> 08:04.820
I hope you understand the flow.

08:04.820 --> 08:05.020
Right.

08:05.020 --> 08:08.930
And right now Let me say okay.

08:09.410 --> 08:12.770
After that let's click on the user again.

08:20.650 --> 08:23.170
We already got to right over here.

08:26.810 --> 08:27.330
Right.

08:30.290 --> 08:33.250
And we are back to this list.

08:33.250 --> 08:33.810
Right.

08:34.090 --> 08:34.450
Okay.

08:34.450 --> 08:36.890
It's already work with this login.

08:37.450 --> 08:40.850
And let me find the frame of the user right here.

08:42.530 --> 08:53.930
Let me login with the account with access token and click on get my friend.

08:56.450 --> 08:57.050
Say.

09:10.760 --> 09:12.120
It's not work.

09:34.240 --> 09:35.760
Um, let me see.

09:36.880 --> 09:44.640
In here, we get the foreign file by the users and mobilize.

09:48.280 --> 09:50.760
Let me try to console.log.

09:50.760 --> 09:51.600
Result.

10:17.280 --> 10:17.600
Mm.

10:20.040 --> 10:24.280
We don't have any personalized for rain over here.

10:25.560 --> 10:25.960
Hmm.

10:28.720 --> 10:29.640
Let's see why.

10:41.880 --> 10:42.280
Mm.

10:43.040 --> 10:48.120
We don't have any for rain over here.

10:50.560 --> 10:52.480
This ad right here.

10:53.360 --> 10:58.200
Finally, over here will be finite also.

10:58.840 --> 11:01.480
But we don't have a favorite.

11:06.600 --> 11:12.110
Let me try to Council gives a right to say what actually happened.

11:24.590 --> 11:26.390
Right here we got on defy.

11:31.670 --> 11:31.950
It.

11:31.950 --> 11:34.470
Meanwhile, we already published.

11:37.830 --> 11:38.990
All the reason.

11:38.990 --> 11:44.230
Because we should both written into the, uh.

11:44.470 --> 11:44.830
Right.

11:45.950 --> 11:46.510
Okay.

11:46.910 --> 11:51.150
We need to move the object array right here into the array, because this is the array of.

11:51.150 --> 11:51.510
Right?

11:51.550 --> 11:52.030
Right.

11:55.470 --> 11:59.030
So let me, uh, save us.

12:01.950 --> 12:04.150
So here we already got four right with array.

12:04.190 --> 12:04.670
Okay.

12:05.870 --> 12:07.510
So this already work.

12:07.550 --> 12:15.100
And right here we just need to check a little bit of if no user neutral nail, no file.

12:15.820 --> 12:16.620
This is one.

12:20.140 --> 12:28.740
User file and I will return the user ID of right over here to return back the frame.

12:32.420 --> 12:33.100
Let me say.

12:36.660 --> 12:37.140
Okay.

12:37.140 --> 12:42.140
We already got this information about the current frame.

12:42.540 --> 12:46.340
And right here it also have a nested for rain okay.

12:47.060 --> 12:49.740
And we don't care about nested frame okay.

12:49.740 --> 12:55.260
So for that reason later we can filter out rust using the form DTO.

12:55.860 --> 13:04.660
And last for the video I hope you understand and make sure when we boost the URL right over here, we

13:04.660 --> 13:07.220
will wrap the tie into the array.

13:07.740 --> 13:09.580
So that's for the video.

13:09.580 --> 13:10.140
I will see you.
