{"action":"created","comment":{"url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/comments/151346725","pull_request_review_id":77038489,"id":151346725,"diff_hunk":"@@ -50,22 +54,22 @@ export default {\n           ]\n         },\n       })\n-      .then((user) => {\n-        if (!user) {\n-          return res.status(400).json({ message: 'User is not registered' });\n+      .then((userDetail) => {\n+        if (!userDetail) {\n+          return res.status(404).json({ message: 'User is not registered' });\n         }\n-        const token = jwt.sign({ user }, secret);\n-        const { password } = user;\n+        const token = jwt.sign({ userDetail }, secret);","path":"server/controllers/user.js","position":51,"original_position":51,"commit_id":"674b68552a86d259c7310a20cbc51856bef76951","original_commit_id":"674b68552a86d259c7310a20cbc51856bef76951","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).<br>'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).","created_at":"2017-11-16T08:33:02Z","updated_at":"2017-11-16T08:33:03Z","html_url":"https://github.com/GeekHijabi/More-recipes/pull/27#discussion_r151346725","pull_request_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/27","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/comments/151346725"},"html":{"href":"https://github.com/GeekHijabi/More-recipes/pull/27#discussion_r151346725"},"pull_request":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/27","id":152978589,"html_url":"https://github.com/GeekHijabi/More-recipes/pull/27","diff_url":"https://github.com/GeekHijabi/More-recipes/pull/27.diff","patch_url":"https://github.com/GeekHijabi/More-recipes/pull/27.patch","issue_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/27","number":27,"state":"open","locked":false,"title":"Modify controllers","user":{"login":"GeekHijabi","id":17340003,"avatar_url":"https://avatars3.githubusercontent.com/u/17340003?v=4","gravatar_id":"","url":"https://api.github.com/users/GeekHijabi","html_url":"https://github.com/GeekHijabi","followers_url":"https://api.github.com/users/GeekHijabi/followers","following_url":"https://api.github.com/users/GeekHijabi/following{/other_user}","gists_url":"https://api.github.com/users/GeekHijabi/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHijabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHijabi/subscriptions","organizations_url":"https://api.github.com/users/GeekHijabi/orgs","repos_url":"https://api.github.com/users/GeekHijabi/repos","events_url":"https://api.github.com/users/GeekHijabi/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHijabi/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-16T08:32:54Z","updated_at":"2017-11-16T08:33:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86dabbffc52ebd86435caa3cc200c5a35f5a385e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/27/commits","review_comments_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/27/comments","review_comment_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/27/comments","statuses_url":"https://api.github.com/repos/GeekHijabi/More-recipes/statuses/674b68552a86d259c7310a20cbc51856bef76951","head":{"label":"GeekHijabi:ft-server-refactor","ref":"ft-server-refactor","sha":"674b68552a86d259c7310a20cbc51856bef76951","user":{"login":"GeekHijabi","id":17340003,"avatar_url":"https://avatars3.githubusercontent.com/u/17340003?v=4","gravatar_id":"","url":"https://api.github.com/users/GeekHijabi","html_url":"https://github.com/GeekHijabi","followers_url":"https://api.github.com/users/GeekHijabi/followers","following_url":"https://api.github.com/users/GeekHijabi/following{/other_user}","gists_url":"https://api.github.com/users/GeekHijabi/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHijabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHijabi/subscriptions","organizations_url":"https://api.github.com/users/GeekHijabi/orgs","repos_url":"https://api.github.com/users/GeekHijabi/repos","events_url":"https://api.github.com/users/GeekHijabi/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHijabi/received_events","type":"User","site_admin":false},"repo":{"id":104189130,"name":"More-recipes","full_name":"GeekHijabi/More-recipes","owner":{"login":"GeekHijabi","id":17340003,"avatar_url":"https://avatars3.githubusercontent.com/u/17340003?v=4","gravatar_id":"","url":"https://api.github.com/users/GeekHijabi","html_url":"https://github.com/GeekHijabi","followers_url":"https://api.github.com/users/GeekHijabi/followers","following_url":"https://api.github.com/users/GeekHijabi/following{/other_user}","gists_url":"https://api.github.com/users/GeekHijabi/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHijabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHijabi/subscriptions","organizations_url":"https://api.github.com/users/GeekHijabi/orgs","repos_url":"https://api.github.com/users/GeekHijabi/repos","events_url":"https://api.github.com/users/GeekHijabi/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHijabi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GeekHijabi/More-recipes","description":"A platform where users can view, share and update their recipes ","fork":false,"url":"https://api.github.com/repos/GeekHijabi/More-recipes","forks_url":"https://api.github.com/repos/GeekHijabi/More-recipes/forks","keys_url":"https://api.github.com/repos/GeekHijabi/More-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeekHijabi/More-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeekHijabi/More-recipes/teams","hooks_url":"https://api.github.com/repos/GeekHijabi/More-recipes/hooks","issue_events_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/GeekHijabi/More-recipes/events","assignees_url":"https://api.github.com/repos/GeekHijabi/More-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/GeekHijabi/More-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/GeekHijabi/More-recipes/tags","blobs_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeekHijabi/More-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/GeekHijabi/More-recipes/languages","stargazers_url":"https://api.github.com/repos/GeekHijabi/More-recipes/stargazers","contributors_url":"https://api.github.com/repos/GeekHijabi/More-recipes/contributors","subscribers_url":"https://api.github.com/repos/GeekHijabi/More-recipes/subscribers","subscription_url":"https://api.github.com/repos/GeekHijabi/More-recipes/subscription","commits_url":"https://api.github.com/repos/GeekHijabi/More-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeekHijabi/More-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeekHijabi/More-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/GeekHijabi/More-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeekHijabi/More-recipes/merges","archive_url":"https://api.github.com/repos/GeekHijabi/More-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeekHijabi/More-recipes/downloads","issues_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/GeekHijabi/More-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/GeekHijabi/More-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeekHijabi/More-recipes/labels{/name}","releases_url":"https://api.github.com/repos/GeekHijabi/More-recipes/releases{/id}","deployments_url":"https://api.github.com/repos/GeekHijabi/More-recipes/deployments","created_at":"2017-09-20T08:39:01Z","updated_at":"2017-11-13T04:31:13Z","pushed_at":"2017-11-16T08:32:55Z","git_url":"git://github.com/GeekHijabi/More-recipes.git","ssh_url":"git@github.com:GeekHijabi/More-recipes.git","clone_url":"https://github.com/GeekHijabi/More-recipes.git","svn_url":"https://github.com/GeekHijabi/More-recipes","homepage":"https://morerecipes-27.herokuapp.com/api/v1/recipes","size":6060,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"GeekHijabi:development","ref":"development","sha":"5c77d28f1e5373989fef564b8aa77ff8e9133b00","user":{"login":"GeekHijabi","id":17340003,"avatar_url":"https://avatars3.githubusercontent.com/u/17340003?v=4","gravatar_id":"","url":"https://api.github.com/users/GeekHijabi","html_url":"https://github.com/GeekHijabi","followers_url":"https://api.github.com/users/GeekHijabi/followers","following_url":"https://api.github.com/users/GeekHijabi/following{/other_user}","gists_url":"https://api.github.com/users/GeekHijabi/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHijabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHijabi/subscriptions","organizations_url":"https://api.github.com/users/GeekHijabi/orgs","repos_url":"https://api.github.com/users/GeekHijabi/repos","events_url":"https://api.github.com/users/GeekHijabi/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHijabi/received_events","type":"User","site_admin":false},"repo":{"id":104189130,"name":"More-recipes","full_name":"GeekHijabi/More-recipes","owner":{"login":"GeekHijabi","id":17340003,"avatar_url":"https://avatars3.githubusercontent.com/u/17340003?v=4","gravatar_id":"","url":"https://api.github.com/users/GeekHijabi","html_url":"https://github.com/GeekHijabi","followers_url":"https://api.github.com/users/GeekHijabi/followers","following_url":"https://api.github.com/users/GeekHijabi/following{/other_user}","gists_url":"https://api.github.com/users/GeekHijabi/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHijabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHijabi/subscriptions","organizations_url":"https://api.github.com/users/GeekHijabi/orgs","repos_url":"https://api.github.com/users/GeekHijabi/repos","events_url":"https://api.github.com/users/GeekHijabi/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHijabi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GeekHijabi/More-recipes","description":"A platform where users can view, share and update their recipes ","fork":false,"url":"https://api.github.com/repos/GeekHijabi/More-recipes","forks_url":"https://api.github.com/repos/GeekHijabi/More-recipes/forks","keys_url":"https://api.github.com/repos/GeekHijabi/More-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeekHijabi/More-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeekHijabi/More-recipes/teams","hooks_url":"https://api.github.com/repos/GeekHijabi/More-recipes/hooks","issue_events_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/GeekHijabi/More-recipes/events","assignees_url":"https://api.github.com/repos/GeekHijabi/More-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/GeekHijabi/More-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/GeekHijabi/More-recipes/tags","blobs_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeekHijabi/More-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/GeekHijabi/More-recipes/languages","stargazers_url":"https://api.github.com/repos/GeekHijabi/More-recipes/stargazers","contributors_url":"https://api.github.com/repos/GeekHijabi/More-recipes/contributors","subscribers_url":"https://api.github.com/repos/GeekHijabi/More-recipes/subscribers","subscription_url":"https://api.github.com/repos/GeekHijabi/More-recipes/subscription","commits_url":"https://api.github.com/repos/GeekHijabi/More-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeekHijabi/More-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeekHijabi/More-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeekHijabi/More-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/GeekHijabi/More-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeekHijabi/More-recipes/merges","archive_url":"https://api.github.com/repos/GeekHijabi/More-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeekHijabi/More-recipes/downloads","issues_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/GeekHijabi/More-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/GeekHijabi/More-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeekHijabi/More-recipes/labels{/name}","releases_url":"https://api.github.com/repos/GeekHijabi/More-recipes/releases{/id}","deployments_url":"https://api.github.com/repos/GeekHijabi/More-recipes/deployments","created_at":"2017-09-20T08:39:01Z","updated_at":"2017-11-13T04:31:13Z","pushed_at":"2017-11-16T08:32:55Z","git_url":"git://github.com/GeekHijabi/More-recipes.git","ssh_url":"git@github.com:GeekHijabi/More-recipes.git","clone_url":"https://github.com/GeekHijabi/More-recipes.git","svn_url":"https://github.com/GeekHijabi/More-recipes","homepage":"https://morerecipes-27.herokuapp.com/api/v1/recipes","size":6060,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/27"},"html":{"href":"https://github.com/GeekHijabi/More-recipes/pull/27"},"issue":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/27"},"comments":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/statuses/674b68552a86d259c7310a20cbc51856bef76951"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}