Before we move on from our order I would like to add in that Mongoose update if current plugin remember
that's gonna make sure that we always process all of our different events in the correct order to back
up my terminal I'm going to change into payments directory and then install Mongoose update if current
that is a super small module so it should install it really quickly and then once we've got it we'll
go back over to our model file at the very top I will add in an import statement for updates if current
plugin from Mongoose update if current
then down right underneath our schema here's the order schema right after that Latin in order schema
dot set we want to set the version key to version remember that's going to override Mongoose and tell
it to not use that underscore underscore the flag and then we will wire up the plug in itself so order
schema dot plug in and pass in update if current plugin and that should be at its we'll save this file
quick pause right here and continue in just a minute.