hagopj13 / node-express-boilerplate

A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
MIT License
7k stars 2.06k forks source link

What am I missing with updateBody #138

Closed JohnAllen closed 3 years ago

JohnAllen commented 3 years ago

The included updateUserById function does not actually update the user doc, as the user object is nested in the model object. So the default/included function does not actually update the user, at least it doesn't for my code. What am I missing? I can fix this, of course; I just figured something is more likely wrong with my code than this repo.

JohnAllen commented 3 years ago

It works. Field wasn't in my schema...