WEBVTT

00:00.840 --> 00:02.040
Hi everyone.

00:02.040 --> 00:11.400
In this video I will show you how to fix the underscore ID chain over time.

00:12.360 --> 00:13.000
The reason?

00:13.000 --> 00:15.360
Because when we use the DTO.

00:21.640 --> 00:24.560
We use the balance to eastern.

00:25.400 --> 00:30.160
This will be somehow modify the data with me.

00:30.600 --> 00:35.840
So to be honest I don't know how to fix that and what exactly the problem.

00:36.320 --> 00:48.000
But when we are the programmers, we usually shots the issue and somehow fix that without totally understand

00:48.120 --> 00:50.320
exactly why, right?

00:51.200 --> 00:55.080
So in this video let me show you how to do that.

00:55.640 --> 01:00.840
Well, this is very important skill as a programmer.

01:04.390 --> 01:11.710
If you remember right here, the ID will be a nice right.

01:12.470 --> 01:16.590
And here will be zero six.

01:17.270 --> 01:19.950
This totally not okay at all right?

01:19.950 --> 01:23.430
When we send it will somehow change.

01:24.070 --> 01:34.550
So right here I will show the submit object ID is jumped from into different one when use time to class.

01:35.030 --> 01:38.910
And I will say the one more topic inside GitHub issue.

01:39.950 --> 01:41.430
You can click on that.

01:42.670 --> 01:50.910
And if you scroll down it will somehow solve the issue for you.

01:52.190 --> 01:58.950
Okay, for more detail, you can always read why exactly that happened into this thing.

01:59.590 --> 02:03.030
But the only issue here is this okay?

02:03.750 --> 02:04.270
Okay.

02:05.350 --> 02:09.670
I will copy this thing to save it or not.

02:13.310 --> 02:23.230
I will paste this thing over here and let me say the result like one a little bit.

02:27.310 --> 02:31.990
Now let me say now you can say E nine.

02:32.830 --> 02:37.510
And this here will be E nine right.

02:41.270 --> 02:41.670
Okay.

02:41.670 --> 02:43.870
It already is exactly the same.

02:44.310 --> 02:50.310
And when we say we on Y we get the result.

02:50.590 --> 02:51.910
Very very cool.

02:52.870 --> 02:55.950
So with this thing it will fix the issue.

02:56.510 --> 03:04.060
And right now I will separate it into the custom decorator for You start it later.

03:05.140 --> 03:05.700
Start here.

03:06.140 --> 03:12.060
I will create an object and not decorator dots.

03:12.100 --> 03:21.820
These are the recall rules with.

03:23.980 --> 03:25.020
Rule ID.

03:26.100 --> 03:26.460
Hmm.

03:28.940 --> 03:29.300
Okay.

03:29.340 --> 03:33.140
I think I will call the object dot the Greater Los.

03:33.340 --> 03:33.780
Yes.

03:34.220 --> 03:36.020
And I will cast retain.

03:36.420 --> 03:44.340
I will create a new one with this guy and the class transformer.

03:48.020 --> 03:48.860
With a function.

03:56.100 --> 03:59.140
It will return the type.

03:59.740 --> 04:00.260
Okay.

04:01.060 --> 04:05.020
And I will ignore the TypeScript right now.

04:07.500 --> 04:08.900
Only this file.

04:09.980 --> 04:10.500
Okay.

04:10.900 --> 04:13.980
And I will not add it later.

04:14.020 --> 04:15.580
We just need to view the object ID.

04:18.260 --> 04:18.940
Over here.

04:21.140 --> 04:21.700
Let's say.

04:27.620 --> 04:28.140
Okay.

04:28.140 --> 04:29.620
This only work.

04:30.140 --> 04:37.740
And we need to view the object ID everywhere when we do the respondto.

04:38.700 --> 04:47.140
So for that reason I will go back to the users view over here and use the object array.

04:47.820 --> 04:49.900
So it will fix that issue.

04:50.300 --> 04:51.420
Very very good.

04:51.940 --> 05:00.340
And in this video I already show you how we can shot for problem.

05:00.940 --> 05:01.460
Okay.

05:01.820 --> 05:04.100
So I will see you in the next one.
