billmon (2) [Avatar] Offline
#1
Was getting "Bad Request" errors back from Node.js angello-express-api backend when attempting to make changes to either stories or users (both REST put calls). The returned message in both cases was clearly a mongodb error: "mod on _id not allowed".

I tracked this down to what appear to be typos (or omissions) in angello-express-api/features/users/index.js and angello-express-api/features/stories/index.js.

When I changed to app.put handlers in those mosdules from

     _.omit(req.body, 'userId')


to
     _.omit(req.body, '_id')


the story and user updates work properly.



Lukas Ruebbelke (107) [Avatar] Offline
#2
Submit a pull request and I will give you a #highFive and a prize smilie
billmon (2) [Avatar] Offline
#3