Hard.
Everyone in this video, let's continue with our reaction into the bus.
Now you can see right here we have some complicated logic, but most of the time we don't care.
That's what we need to do.
We need to just send the bus right here again for the client and that will be very enough.
Okay.
You can see right here we already handle the logic, right?
We handled some logic over here.
And by the end of the day, we just need to know the bus right here.
Hop reaction okay.
And this will be enough.
So let me show you how it works right here.
If I console.log we will.
Yes, ma'am.
Boss!
Over here!
Okay.
And I will away.
Sorry.
I will call.
The boss.
Come on.
Boss.
Blend tool is done.
And Woodside boss over here is in the cast.
First of all, boss.
Little save.
Boss.
And?
So.
This will be for the respawn post.
And we need to emit a rank with this information.
Right.
Let me call that.
African art reaction and I will send respond box over here.
And let me create a logic.
When we lost very strong possibility of this dot several dot emit boss reaction.
Okay and boost the post over here.
Let me console.log the boss.
Let me show you how it works.
Let's wake up with the idea of the boss over here.
Let me go!
And I will choose.
Add reactions.
Into the body.
Add over here and the types will be halfway.
And right now let me authentication.
Okay.
And now let me try to send us.
Now you can say we already got this information.
Let's double check.
We already got the reaction with the happy.
We won.
Okay.
We can base on this thing.
So.
Who showed us all the funny.
Okay, so with this way we can see in the front end, right?
Right now, I just realized we don't have any controllers for.
Get the user whole reaction for the boss.
Okay?
We only see the the cows.
Okay.
We don't say a whole user calls it one.
Right?
So for that reason, we just need to create another controller for Fall for my own.
Reaction app specific boss.
Okay.
And right now, this method already work.
Okay?
We don't need to modify anything.
Oh, sorry.
Let's reload.
All right.
Okay, this function will be enough, but right here, if you get a boss right here, you can see we
just copy the ID.
Um.
Let me come over here, boss.
Let's say.
Okay, we got a reaction.
Now I want to create another method to say, uh, for example, right here, let me duplicate.
I will create a boss.
Reaction.
Okay.
We still need to boost right here and slot reaction, right?
Boss.
Array and reaction.
Okay.
Let me create another controllers.
Let's say we have a method for get one.
Let me see again right here.
Let me come with us and put us over here.
Slot and a slot reaction.
We will find one with reaction plus five.
Okay, I don't know.
We need the other.
And we don't need any current users right now.
Remove that.
And right here.
Right here.
What is that?
Let me create another the controller file.
One with the action.
Okay.
Right now we need to delegate that job or the reaction service.
Open reaction service.
And we need to write a method.
By.
Most reaction is here, we will be okay.
And when it comes reaction people, why this reaction model not file with the boss?
We responded okay.
And actually we just need to return directly over here.
And go to the boss service.
And I will call here return this dot.
3.5 boss reaction would be over here.
And let me test the controller.
Let's say.
Um, right here, because we already have a little.
So it not work right now.
We need to create another little.
Let me create us.
I will call, but before that, let me disable.
Okay.
Let me say right here we already got the user.
Okay.
What's it about the time where we need to.
Rechartering the user.
Sorry.
We need to populate the user over here.
So we go back to the reaction service and popularize the user okay.
We only need the users Right.
Let me say.
Over and right now, we only need the the name and the avatar.
That's really enough.
Over there in Nevada.
And we need to transform this.
Let me show you right here inside the controller.
We need to create another controller.
I will, um, I will create a respawn boss action.
Not because this.
Is not class.
This one boss reaction.
Followed by the other.
Okay.
And, uh, the post.
Will read it also.
And the ties.
And the user.
Okay.
We need to create the app.
So.
Uh, let me go to user.
About the time and we would user over here.
So what we need to do further we will use the id string user name screen and user avatar.
Okay.
Now let's go one by one small and transforms.
So.
Much so we will Well, don't forget us.
And one here is more user avatar URL.
And right here let me copy the transform come from this table does.
Not over here.
And we need to.
Refactor.
Sorry.
For my question mark.
Question mark.
Right.
And run.
Here let me remove.
Use the avatar.
Okay.
That is.
What we are.
Animals respond both little and inside.
No.
Wait here.
I will override us.
Okay.
First one boss reaction is here.
Let's save us.
Okay, let me say.
Now we got an internal server error.
Cannot reach power 45.
Um.
Let me.
See.
Let me try to disable.
And secondly.
Yup.
Here.
Hmm.
Let me try to command this thing.
We still got the error.
Let me try one command.
Sorry.
Let me try to command this boss right here.
Let me say.
Okay.
We already got that.
So what actually happened right now?
We cannot apply to transform residual at the same time.
For that reason, we need to do that one by one.
Okay.
Right now, let me put that.
One by one.
I will go by this thing.
Over here, over here, over here.
Here.
And with this thing, we need to go different.
Okay.
Make sure this here we use a different little.
Let me say.
Okay.
It's already work.
And let me get a boss.
Okay.
It's work.
Right.
So with this thing, we can easily check the.
No, no!
User over here.
What?
Why is.
Give me a job again?
Oh, I forgot to put a user.
In user?
Okay, so you put a user over here.
Let me say that again.
Okay?
We already got a user avatar.
Okay.
With this thing we can easily extract that, right?
We can easily use this and buy.
So get on the front end okay.
And thus will be enough for the video.
So I will see you in.