1 00:00:00,720 --> 00:00:05,290 Unless sexually kicked off one final test for web hook route handler. 2 00:00:05,340 --> 00:00:10,420 So we don't have any logging statements inside of here right now to make sure that everything worked. 3 00:00:10,500 --> 00:00:13,380 We're going to look directly at our Mongo database over on. 4 00:00:13,400 --> 00:00:19,590 In lab dot com to verify and make sure the survey was created and successfully updated by clicking on 5 00:00:19,590 --> 00:00:20,480 our links. 6 00:00:20,790 --> 00:00:26,310 So I'm going to go over to my browser where I've already opened up my lab dashboard and I'm looking 7 00:00:26,310 --> 00:00:28,730 at my e-mail dashed ever count. 8 00:00:28,890 --> 00:00:36,300 I'm going to find my survey's collection and then at this point we have a pretty good number of records 9 00:00:36,300 --> 00:00:36,800 in here. 10 00:00:36,810 --> 00:00:38,450 I in particular have twelth. 11 00:00:38,490 --> 00:00:43,380 You might have less that's totally fine but just be aware that by default this interface shows only 12 00:00:43,410 --> 00:00:45,120 10 records per page. 13 00:00:45,180 --> 00:00:50,870 So going to make sure that I go to the next page so I can see the next 12 or next to excuse me. 14 00:00:50,870 --> 00:00:56,160 And so now when I scroll down a little bit here is this survey we just sent out a super final test. 15 00:00:56,210 --> 00:00:58,590 It's going to click on the Edit button right here. 16 00:00:59,130 --> 00:01:02,800 Here's the edit button just so I can examine this record in greater detail. 17 00:01:04,140 --> 00:01:04,440 OK. 18 00:01:04,470 --> 00:01:10,350 So as we look at this thing you'll notice that I have exactly one piece of yes feedback even though 19 00:01:10,350 --> 00:01:12,880 I clicked on that link many times. 20 00:01:12,900 --> 00:01:18,450 In addition if I start to scroll through the recipients list you'll notice that dead e-mail at gmail 21 00:01:18,450 --> 00:01:20,330 dot com has a responded of. 22 00:01:20,340 --> 00:01:26,460 True but everything else is responded of false because we have not gotten any responses from any of 23 00:01:26,460 --> 00:01:28,010 these other e-mails yet. 24 00:01:28,050 --> 00:01:30,410 So looks like everything worked pretty darn well. 25 00:01:30,420 --> 00:01:35,130 We found the correct survey we found the appropriate recipient. 26 00:01:35,250 --> 00:01:40,330 We updated they responded properly flagged to true and we also updated Yes. 27 00:01:40,350 --> 00:01:43,990 So I think that we are in a pretty darned good spot at this point in time. 28 00:01:44,160 --> 00:01:49,130 And I think that we're ready to probably move on to maybe the next feature inside of our application. 29 00:01:49,170 --> 00:01:52,960 There is one less thing that we might want to take care care of however. 30 00:01:53,010 --> 00:01:58,110 You'll recall that inside of our survey model we had said that we wanted to record the last responded 31 00:01:58,140 --> 00:02:01,390 date whenever a user clicks on those e-mails. 32 00:02:01,410 --> 00:02:05,940 So maybe we'll take a quick break and then we'll come back and make sure that we update our query that 33 00:02:05,940 --> 00:02:11,160 we wrote inside of our handler to also set the last respondent date as well. 34 00:02:11,190 --> 00:02:13,550 So let's continue the next section and take care of that. 35 00:02:13,560 --> 00:02:17,610 One last little piece of code so I'll see you in just a minute.