ga-wdi-boston / team-project

Other
2 stars 39 forks source link

500 internal server error when loading index #375

Closed jingrid closed 7 years ago

jingrid commented 7 years ago

Trying to load Blogs on my localhost, it was working, but now it just gives { "error": { "message": "Blog.find is not a function", "error": {} } }

The Blog.find is in my controller for Blogs, which I haven't changed.

cpearce31 commented 7 years ago

Can we see the controller code?

jingrid commented 7 years ago

Fixed it!

We were trying to create a nested schema, and having curly braces in module.exports was throwing it off.