{"action":"created","issue":{"url":"https://api.github.com/repos/eddywashere/node-stripe-membership-saas/issues/11","labels_url":"https://api.github.com/repos/eddywashere/node-stripe-membership-saas/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/eddywashere/node-stripe-membership-saas/issues/11/comments","events_url":"https://api.github.com/repos/eddywashere/node-stripe-membership-saas/issues/11/events","html_url":"https://github.com/eddywashere/node-stripe-membership-saas/pull/11","id":107250206,"number":11,"title":"removed unnecessary save call","user":{"login":"nayrrod","id":4798328,"avatar_url":"https://avatars.githubusercontent.com/u/4798328?v=3","gravatar_id":"","url":"https://api.github.com/users/nayrrod","html_url":"https://github.com/nayrrod","followers_url":"https://api.github.com/users/nayrrod/followers","following_url":"https://api.github.com/users/nayrrod/following{/other_user}","gists_url":"https://api.github.com/users/nayrrod/gists{/gist_id}","starred_url":"https://api.github.com/users/nayrrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nayrrod/subscriptions","organizations_url":"https://api.github.com/users/nayrrod/orgs","repos_url":"https://api.github.com/users/nayrrod/repos","events_url":"https://api.github.com/users/nayrrod/events{/privacy}","received_events_url":"https://api.github.com/users/nayrrod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T18:11:05Z","updated_at":"2015-09-18T18:13:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eddywashere/node-stripe-membership-saas/pulls/11","html_url":"https://github.com/eddywashere/node-stripe-membership-saas/pull/11","diff_url":"https://github.com/eddywashere/node-stripe-membership-saas/pull/11.diff","patch_url":"https://github.com/eddywashere/node-stripe-membership-saas/pull/11.patch"},"body":"I stumbled upon a bug in a larger MEAN application.\n\nBasically the createCustomer method is only called in a pre-save hook, so saving the user is useless.\n\nMoreover, by calling the save method, the pre-save hook will be called a second time, potentially causing bugs if other hooks are involved."},"comment":{"url":"https://api.github.com/repos/eddywashere/node-stripe-membership-saas/issues/comments/141523283","html_url":"https://github.com/eddywashere/node-stripe-membership-saas/pull/11#issuecomment-141523283","issue_url":"https://api.github.com/repos/eddywashere/node-stripe-membership-saas/issues/11","id":141523283,"user":{"login":"eddywashere","id":399776,"avatar_url":"https://avatars.githubusercontent.com/u/399776?v=3","gravatar_id":"","url":"https://api.github.com/users/eddywashere","html_url":"https://github.com/eddywashere","followers_url":"https://api.github.com/users/eddywashere/followers","following_url":"https://api.github.com/users/eddywashere/following{/other_user}","gists_url":"https://api.github.com/users/eddywashere/gists{/gist_id}","starred_url":"https://api.github.com/users/eddywashere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddywashere/subscriptions","organizations_url":"https://api.github.com/users/eddywashere/orgs","repos_url":"https://api.github.com/users/eddywashere/repos","events_url":"https://api.github.com/users/eddywashere/events{/privacy}","received_events_url":"https://api.github.com/users/eddywashere/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T18:13:14Z","updated_at":"2015-09-18T18:13:14Z","body":"good catch! :+1: "}}