Unless sexually kicked off one final test for web hook route handler.
So we don't have any logging statements inside of here right now to make sure that everything worked.
We're going to look directly at our Mongo database over on.
In lab dot com to verify and make sure the survey was created and successfully updated by clicking on
our links.
So I'm going to go over to my browser where I've already opened up my lab dashboard and I'm looking
at my e-mail dashed ever count.
I'm going to find my survey's collection and then at this point we have a pretty good number of records
in here.
I in particular have twelth.
You might have less that's totally fine but just be aware that by default this interface shows only
10 records per page.
So going to make sure that I go to the next page so I can see the next 12 or next to excuse me.
And so now when I scroll down a little bit here is this survey we just sent out a super final test.
It's going to click on the Edit button right here.
Here's the edit button just so I can examine this record in greater detail.
OK.
So as we look at this thing you'll notice that I have exactly one piece of yes feedback even though
I clicked on that link many times.
In addition if I start to scroll through the recipients list you'll notice that dead e-mail at gmail
dot com has a responded of.
True but everything else is responded of false because we have not gotten any responses from any of
these other e-mails yet.
So looks like everything worked pretty darn well.
We found the correct survey we found the appropriate recipient.
We updated they responded properly flagged to true and we also updated Yes.
So I think that we are in a pretty darned good spot at this point in time.
And I think that we're ready to probably move on to maybe the next feature inside of our application.
There is one less thing that we might want to take care care of however.
You'll recall that inside of our survey model we had said that we wanted to record the last responded
date whenever a user clicks on those e-mails.
So maybe we'll take a quick break and then we'll come back and make sure that we update our query that
we wrote inside of our handler to also set the last respondent date as well.
So let's continue the next section and take care of that.
One last little piece of code so I'll see you in just a minute.