vasansr / pro-mern-stack

Code Listing for the book Pro MERN Stack
http://www.apress.com/in/book/9781484226520
342 stars 157 forks source link

validateIssue function in server.js is not correct #19

Closed kvkenyon closed 7 years ago

kvkenyon commented 7 years ago

It only cares if you have id. If you are missing any other required fields except status it won't notice. When I remove const from the the for loop it works properly.