1 00:00:00,690 --> 00:00:06,210 Before we move on from our order I would like to add in that Mongoose update if current plugin remember 2 00:00:06,240 --> 00:00:10,290 that's gonna make sure that we always process all of our different events in the correct order to back 3 00:00:10,290 --> 00:00:18,780 up my terminal I'm going to change into payments directory and then install Mongoose update if current 4 00:00:21,360 --> 00:00:26,550 that is a super small module so it should install it really quickly and then once we've got it we'll 5 00:00:26,550 --> 00:00:33,950 go back over to our model file at the very top I will add in an import statement for updates if current 6 00:00:34,050 --> 00:00:39,490 plugin from Mongoose update if current 7 00:00:42,520 --> 00:00:49,800 then down right underneath our schema here's the order schema right after that Latin in order schema 8 00:00:50,110 --> 00:00:57,720 dot set we want to set the version key to version remember that's going to override Mongoose and tell 9 00:00:57,720 --> 00:01:04,000 it to not use that underscore underscore the flag and then we will wire up the plug in itself so order 10 00:01:04,000 --> 00:01:14,870 schema dot plug in and pass in update if current plugin and that should be at its we'll save this file 11 00:01:15,110 --> 00:01:17,110 quick pause right here and continue in just a minute.