Hi everyone.
In this video I will show you how to fix the underscore ID chain over time.
The reason?
Because when we use the DTO.
We use the balance to eastern.
This will be somehow modify the data with me.
So to be honest I don't know how to fix that and what exactly the problem.
But when we are the programmers, we usually shots the issue and somehow fix that without totally understand
exactly why, right?
So in this video let me show you how to do that.
Well, this is very important skill as a programmer.
If you remember right here, the ID will be a nice right.
And here will be zero six.
This totally not okay at all right?
When we send it will somehow change.
So right here I will show the submit object ID is jumped from into different one when use time to class.
And I will say the one more topic inside GitHub issue.
You can click on that.
And if you scroll down it will somehow solve the issue for you.
Okay, for more detail, you can always read why exactly that happened into this thing.
But the only issue here is this okay?
Okay.
I will copy this thing to save it or not.
I will paste this thing over here and let me say the result like one a little bit.
Now let me say now you can say E nine.
And this here will be E nine right.
Okay.
It already is exactly the same.
And when we say we on Y we get the result.
Very very cool.
So with this thing it will fix the issue.
And right now I will separate it into the custom decorator for You start it later.
Start here.
I will create an object and not decorator dots.
These are the recall rules with.
Rule ID.
Hmm.
Okay.
I think I will call the object dot the Greater Los.
Yes.
And I will cast retain.
I will create a new one with this guy and the class transformer.
With a function.
It will return the type.
Okay.
And I will ignore the TypeScript right now.
Only this file.
Okay.
And I will not add it later.
We just need to view the object ID.
Over here.
Let's say.
Okay.
This only work.
And we need to view the object ID everywhere when we do the respondto.
So for that reason I will go back to the users view over here and use the object array.
So it will fix that issue.
Very very good.
And in this video I already show you how we can shot for problem.
Okay.
So I will see you in the next one.