{"action":"closed","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/5073","repository_url":"https://api.github.com/repos/Automattic/mongoose","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/5073/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/5073/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/5073/events","html_url":"https://github.com/Automattic/mongoose/issues/5073","id":214171542,"number":5073,"title":"Hooks not getting fired","user":{"login":"augusto-elevenapp","id":25907862,"avatar_url":"https://avatars3.githubusercontent.com/u/25907862?v=3","gravatar_id":"","url":"https://api.github.com/users/augusto-elevenapp","html_url":"https://github.com/augusto-elevenapp","followers_url":"https://api.github.com/users/augusto-elevenapp/followers","following_url":"https://api.github.com/users/augusto-elevenapp/following{/other_user}","gists_url":"https://api.github.com/users/augusto-elevenapp/gists{/gist_id}","starred_url":"https://api.github.com/users/augusto-elevenapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augusto-elevenapp/subscriptions","organizations_url":"https://api.github.com/users/augusto-elevenapp/orgs","repos_url":"https://api.github.com/users/augusto-elevenapp/repos","events_url":"https://api.github.com/users/augusto-elevenapp/events{/privacy}","received_events_url":"https://api.github.com/users/augusto-elevenapp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-14T18:50:58Z","updated_at":"2017-03-18T18:13:27Z","closed_at":"2017-03-18T18:13:27Z","body":"<!-- *Before creating an issue please make sure you are using the latest version of mongoose -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nReport a bug\r\n**What is the current behavior?**\r\nHooks are not firing\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n<!-- If you can, provide a stadalone script / gist to reproduce your issue -->\r\n\r\n` const newEntity = new Entity(req.body);\r\nnewEntity.save()`\r\n\r\n` FromSchema.pre('save', function(next) {\r\n        console.log('pre save..');\r\n        next();\r\n});`\r\n\r\n\r\n**What is the expected behavior?**\r\n\r\nWhen I save the entity, I should see the log\r\n\r\n**Please mention your node.js, mongoose and MongoDB version.**\r\n\r\nMongoose: 4.9.0\r\nNode: 6.9.5\r\nMongoDb 3.4.2\r\n"}}
{"actor":{"display_login":"varunjayaraman"}}