WEBVTT

00:00.440 --> 00:02.080
Hi everyone.

00:02.320 --> 00:05.000
Welcome to the new session about the users.

00:05.040 --> 00:13.080
Okay, in this video let's add some additional views into the user schema.

00:13.200 --> 00:13.680
Okay.

00:14.720 --> 00:22.040
Let's add that the following will be biologist, avatar, cover, photo, birthday, and phone numbers.

00:22.680 --> 00:25.520
And all of that can be optional.

00:26.280 --> 00:26.760
Okay.

00:27.160 --> 00:30.880
And we will allow the user to update this information.

00:31.680 --> 00:32.200
Okay.

00:33.600 --> 00:35.800
And uh, it later.

00:35.840 --> 00:39.280
You can add more and more if you want with me.

00:39.320 --> 00:42.040
Uh, just need to build a symbol like that.

00:43.680 --> 00:53.680
And for avatar and cover photo, if you remember, we cannot put directly the string right here from

00:53.680 --> 00:54.680
the Cloudinary.

00:54.720 --> 00:56.520
We cannot do something like that.

00:56.520 --> 00:56.960
Right?

00:57.640 --> 01:05.640
Instead of we will start similar with the bus schema you can say is ah, here we already have something

01:05.640 --> 01:07.720
called many times, right?

01:08.160 --> 01:13.680
So we need to use the media types instead of normal string.

01:15.320 --> 01:20.600
So right here I will cut everything from media tie over here.

01:21.840 --> 01:23.960
And I will put that inside global.

01:26.400 --> 01:27.760
I will put this over here.

01:28.200 --> 01:32.400
Remove the exports and it will fix the issue.

01:35.640 --> 01:42.320
And inside the user schema right here replaced with media file.

01:49.000 --> 01:49.800
Verify.

01:51.200 --> 01:51.600
Uh.

01:57.680 --> 01:58.680
Let me see why.

02:02.550 --> 02:04.230
All ceramic tile.

02:04.270 --> 02:04.670
Okay.

02:06.150 --> 02:07.070
Last time.

02:22.110 --> 02:23.030
Right here.

02:23.030 --> 02:24.350
We got the error.

02:35.430 --> 02:38.270
We got the error from here.

02:38.270 --> 02:43.470
It means we cannot put the glass right here in the global.

02:43.870 --> 02:47.350
Okay, I think I will cut that inside the car.

02:48.070 --> 02:52.430
Inside the global create glass.

02:53.670 --> 02:54.150
Okay.

02:55.070 --> 02:59.310
Put that over here and I will export.

03:01.990 --> 03:04.110
And I will You manually broadcast.

03:06.230 --> 03:08.870
From the wall.

03:10.110 --> 03:10.710
Oh, sorry.

03:13.790 --> 03:15.870
Maxwell, cover up the wall.

03:36.190 --> 03:36.750
Okay.

03:38.150 --> 03:40.390
After last.

03:40.750 --> 03:43.590
Let's continue.

03:46.430 --> 03:47.510
These are the user.

03:47.950 --> 03:49.670
These are the controllers.

03:50.910 --> 03:56.270
We have a method to create user, right?

03:56.430 --> 03:57.390
We don't need that.

03:57.430 --> 03:59.590
Let's remove the create user.

04:01.710 --> 04:05.550
And inside here get current user.

04:06.670 --> 04:07.990
We need to fix that.

04:10.390 --> 04:11.270
Don't worry.

04:11.990 --> 04:17.510
And in this video we will need to do the update for user information.

04:34.190 --> 04:36.830
Let A1 update user DTO.

04:37.790 --> 04:41.750
We will expand from create user DTO.

04:42.790 --> 04:44.830
We will not do that.

04:46.470 --> 04:54.830
Instead we will allow user update the information for the file.

04:58.670 --> 05:01.670
Name and phone number.

05:02.950 --> 05:05.980
Again we will allow the user update That information.

05:08.500 --> 05:09.460
Moved over here.

05:14.620 --> 05:22.460
And maybe if you want to change the name, you can do that also over here.

05:23.740 --> 05:24.820
Then we screen.

05:25.940 --> 05:27.580
Let me remove some film.

05:37.380 --> 05:37.940
Over.

05:38.500 --> 05:40.860
We need to add a little bit right here.

05:41.460 --> 05:45.860
We can check is phone number.

05:48.020 --> 05:50.660
And is.

05:54.020 --> 05:56.180
A nice string.

05:58.300 --> 06:01.100
Over and right here.

06:04.780 --> 06:05.140
A.

06:07.740 --> 06:10.300
We can add an object for here.

06:13.380 --> 06:16.180
Or you can put min min max.

06:16.540 --> 06:17.060
Okay.

06:19.940 --> 06:20.780
Min line.

06:23.340 --> 06:26.500
We can use min decorator.

06:31.140 --> 06:34.380
The name forms.

06:42.500 --> 06:42.780
Uh.

06:43.700 --> 06:44.300
Okay.

06:44.900 --> 06:45.220
Uh.

06:45.220 --> 06:45.420
Move.

06:45.420 --> 06:51.820
The mouse line will be possible right here.

06:52.300 --> 06:52.820
Okay.

06:56.500 --> 07:04.180
And by our, you can add a little bit of Chat Moss Lane maybe.

07:08.130 --> 07:09.130
So you are here.

07:10.490 --> 07:11.970
Let me do it real quick.

07:12.090 --> 07:12.610
Okay.

07:15.090 --> 07:19.570
So that's about the little.

07:24.010 --> 07:25.970
Robot to the users of it.

07:26.410 --> 07:28.690
We need to update the information.

07:29.170 --> 07:31.090
Okay, I will call the users.

07:31.610 --> 07:33.170
Go away please.

07:33.170 --> 07:38.410
DOS user model the file and update.

07:39.730 --> 07:41.170
And good idea over here.

07:41.690 --> 07:42.370
The update.

07:46.490 --> 07:48.290
User is over here.

07:51.290 --> 07:54.090
I will go to the new network.

07:57.210 --> 08:03.370
And check if no user wrote, new note file, etc..

08:04.370 --> 08:05.650
User no file.

08:08.090 --> 08:09.890
And return users.

08:13.930 --> 08:14.690
Let's see you.

08:25.810 --> 08:26.410
Do this.

08:26.410 --> 08:28.010
Let's try to.

08:30.850 --> 08:31.490
Update.

08:35.770 --> 08:36.530
The user.

08:37.970 --> 08:39.210
Let me duplicate.

08:43.210 --> 08:44.650
To match.

08:47.410 --> 08:53.490
And right here, let me, uh, sign.

08:56.250 --> 08:59.970
I will sign in with the account over here.

09:01.050 --> 09:02.130
And, uh.

09:06.410 --> 09:06.770
Um.

09:11.210 --> 09:14.090
I completely forgot about the ID.

09:14.130 --> 09:27.290
Okay, let me say is that I get current users a user pilot intelligent form right here.

09:28.690 --> 09:30.610
Uh, we already put the id.

09:36.490 --> 09:45.810
Of active user, the authentication, uh, controller when we sign in.

09:46.770 --> 09:48.050
Let me close over here.

09:50.970 --> 09:51.930
Users.

09:57.410 --> 09:59.930
This one over here.

10:00.730 --> 10:03.930
The ID most.

10:06.050 --> 10:07.530
First college three.

10:11.680 --> 10:14.880
Okay, that is the respawn authentication video.

10:16.040 --> 10:17.920
Uh, let me, uh, set that.

10:23.000 --> 10:24.760
Over and copy the ID.

10:25.680 --> 10:26.440
Listen here.

10:27.360 --> 10:30.000
Let me call that.

10:32.040 --> 10:32.880
Users.

10:35.080 --> 10:35.960
Who are they?

10:41.760 --> 10:43.480
So I will update that biology.

10:46.040 --> 10:49.120
Poster or something like that.

10:49.760 --> 10:50.480
Let me say.

10:52.720 --> 10:53.080
Yeah.

10:53.120 --> 10:56.880
You can always make sure we put the same.

11:03.520 --> 11:11.360
Let's say now it's I, uh, there must be something on the reason?

11:11.360 --> 11:15.840
Because in this case we should put one more thing.

11:18.640 --> 11:25.600
Is are here we should both the is after now for unfair okay.

11:25.920 --> 11:29.920
What is optional for on field.

11:35.440 --> 11:41.320
Because when we update we will only want to update one or more field okay.

11:41.960 --> 11:46.080
So first of all we put three is optional.

11:46.840 --> 11:56.480
Let me say right here um we already update the bio but it does so right here okay.

11:56.520 --> 12:03.920
The reason because we should update the uh respond user DTO right.

12:05.400 --> 12:07.800
Let me move over here and let me explore.

12:10.720 --> 12:11.360
Fire!

12:11.840 --> 12:13.360
Still over here.

12:19.680 --> 12:22.520
Now, let me send this information again.

12:23.000 --> 12:23.400
Okay.

12:23.400 --> 12:30.440
You can say we already got the buyer and let step by step and add everything.

12:32.560 --> 12:35.120
Biologies and, uh.

12:43.880 --> 12:45.280
Both die and phone number.

12:55.040 --> 12:56.800
He later I will add the avatar.

12:56.840 --> 12:57.480
Don't worry.

13:06.160 --> 13:06.920
Let me say.

13:12.390 --> 13:14.630
Okay, let me show you.

13:15.190 --> 13:17.430
Update the workday.

13:36.590 --> 13:37.230
Year.

13:39.670 --> 13:40.310
Month.

13:42.630 --> 13:43.630
And day.

13:43.990 --> 13:46.630
Okay, first of all, let me say.

14:01.830 --> 14:03.710
So we want to correct for you.

14:05.030 --> 14:05.510
Okay.

14:07.310 --> 14:08.070
Okay.

14:09.790 --> 14:10.270
Okay.

14:10.270 --> 14:10.630
The.

14:14.910 --> 14:18.830
Let me change a bit right here.

14:22.310 --> 14:26.510
And insert a schema also.

14:27.150 --> 14:28.790
But that's okay.

14:29.230 --> 14:31.550
My English is not good at all.

14:37.350 --> 14:38.830
I'm sorry for that okay.

14:38.870 --> 14:42.630
So let's go to new okay.

14:46.190 --> 14:46.710
Okay.

14:46.710 --> 14:49.790
Let's say row here okay.

14:49.790 --> 14:52.030
We already update the prototype.

14:53.630 --> 14:54.710
Very attractive.

14:55.630 --> 15:01.910
And if you want we got this both view at the same time right.

15:01.950 --> 15:05.110
Phone number maybe I.

15:09.270 --> 15:13.740
Say for about a month based Okay.

15:14.060 --> 15:15.220
So that's where we would.

15:15.260 --> 15:16.900
Invalid phone number.

15:26.460 --> 15:27.060
Let's say.

15:42.740 --> 15:45.780
Okay I will try to boost some number.

15:45.900 --> 15:48.860
Let's say again it's a phone.

15:48.900 --> 15:51.020
Must be invalid phone number.

15:51.940 --> 15:53.060
I don't know why.

15:55.260 --> 15:57.340
But let me boost the correctly.

15:59.540 --> 16:00.100
Okay.

16:01.060 --> 16:07.060
So make sure you boost the correct number for the bar.

16:07.180 --> 16:10.260
So that is you got the idea right.

16:11.140 --> 16:13.420
And that's for the video.

16:13.460 --> 16:14.660
I will see you in the next one.
