didimitrie / future.speckle

Beta.Speckle is an online parametric model viewer. It enables sharing with your clients/stakeholders/community flexible designs, not just static artefacts.
http://beta.speckle.xyz
MIT License
23 stars 5 forks source link

Error handling when model.ownerID is not found in DB on the get model route #10

Open didimitrie opened 8 years ago

didimitrie commented 8 years ago

GET /view/s/NJvX4e1qg 304 3ms /media/d1de/home/didimitrie/www/beta.speckle.xyz/public_html/app/routes.js:333 User.findOne({ auth0id: myModel.ownerId}, function(err, myUser) { ^ TypeError: Cannot read property 'ownerId' of null