In this post the condition if (req.params.date === '' || req.params.date === undefined) apparently worked. Why is that?
if (req.params.date === '' || req.params.date === undefined)