{"action":"created","comment":{"url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/comments/158589931","pull_request_review_id":85430531,"id":158589931,"diff_hunk":"@@ -106,38 +103,36 @@ export default {\n           return Vote.create({\n             userId: userDetail.id,\n             recipeId: req.params.recipeId,\n-            downvotes: false,\n-            upvotes: true\n+            downvotes: true,\n+            upvotes: false\n           }).then(() => {\n             updateVoteCounts(req.params.recipeId);\n             return res.status(200).json({\n               message: 'Successfully upvoted'\n             });\n           });\n-        } else if (foundVote.upvotes === false) {\n-          return res.status(400).send({\n-            message: 'you cannot upvote, please remove downvote'\n+        }\n+        if (foundVote.downvotes) {\n+          foundVote.updateAttributes({\n+            upvotes: foundVote.upvotes,\n+            downvotes: false\n+          }).then(() => {","path":"server/controllers/votes.js","position":93,"original_position":93,"commit_id":"b1137de11744a5abfafeff61aa60b01b0b1e0b2a","original_commit_id":"b1137de11744a5abfafeff61aa60b01b0b1e0b2a","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":"'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').","created_at":"2017-12-23T22:00:16Z","updated_at":"2017-12-23T22:00:18Z","html_url":"https://github.com/GeekHijabi/More-recipes/pull/35#discussion_r158589931","pull_request_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/35","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/comments/158589931"},"html":{"href":"https://github.com/GeekHijabi/More-recipes/pull/35#discussion_r158589931"},"pull_request":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/35","id":159981209,"html_url":"https://github.com/GeekHijabi/More-recipes/pull/35","diff_url":"https://github.com/GeekHijabi/More-recipes/pull/35.diff","patch_url":"https://github.com/GeekHijabi/More-recipes/pull/35.patch","issue_url":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/35","number":35,"state":"open","locked":false,"title":"Recipe Detail Page","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":"#### What does this PR do?\r\n- It adds the feature recipe page to the component branch\r\n#### Description of Task to be completed?\r\n- A page that contains more detail about a recipe such as ingredients and description\r\n#### How should this be manually tested?\r\nOn the click of the view more button on a recipe, authenticated user sees a page where they can get more details about the recipe\r\n","created_at":"2017-12-23T21:59:59Z","updated_at":"2017-12-23T22:00:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0359235b0a696738c2b7e22a011fe161f7c7660","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/35/commits","review_comments_url":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/35/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/35/comments","statuses_url":"https://api.github.com/repos/GeekHijabi/More-recipes/statuses/b1137de11744a5abfafeff61aa60b01b0b1e0b2a","head":{"label":"GeekHijabi:ft-client-react-components","ref":"ft-client-react-components","sha":"b1137de11744a5abfafeff61aa60b01b0b1e0b2a","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-12-23T22:00:00Z","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":6106,"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,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"GeekHijabi:development","ref":"development","sha":"302a2432222fcecd7fe02216fce888e8a753bc9a","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-12-23T22:00:00Z","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":6106,"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,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/35"},"html":{"href":"https://github.com/GeekHijabi/More-recipes/pull/35"},"issue":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/35"},"comments":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/pulls/35/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/35/commits"},"statuses":{"href":"https://api.github.com/repos/GeekHijabi/More-recipes/statuses/b1137de11744a5abfafeff61aa60b01b0b1e0b2a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}