{"action":"created","comment":{"url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/comments/166426799","pull_request_review_id":94486848,"id":166426799,"diff_hunk":"@@ -235,6 +243,29 @@ export const getUsers = async () => {\n   }\n };\n \n+export const upvoteRecipe = async (recipeId, userId) => {\n+  try {\n+    const userData = JSON.parse(localStorage.userData);\n+    const userToken = userData.token;\n+\n+    const response = await axios({","path":"client/actions/actions.js","position":24,"original_position":24,"commit_id":"7794ad4bb8c611c78e3a778c428344c9a1f34c12","original_commit_id":"7794ad4bb8c611c78e3a778c428344c9a1f34c12","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":"'response' is assigned a value but never used   no-unused-vars","created_at":"2018-02-06T20:03:08Z","updated_at":"2018-02-06T20:03:09Z","html_url":"https://github.com/purpose50/More-Recipes/pull/69#discussion_r166426799","pull_request_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/69","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/comments/166426799"},"html":{"href":"https://github.com/purpose50/More-Recipes/pull/69#discussion_r166426799"},"pull_request":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/69","id":167515758,"html_url":"https://github.com/purpose50/More-Recipes/pull/69","diff_url":"https://github.com/purpose50/More-Recipes/pull/69.diff","patch_url":"https://github.com/purpose50/More-Recipes/pull/69.patch","issue_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/69","number":69,"state":"open","locked":false,"title":"154946347 upvote recipes","user":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nupvote recipes\r\n\r\n#### Description of Task to be completed?\r\nupvote recipe when user clicks on the upvote button\r\n\r\n#### How should this be manually tested?\r\n* clone the branch\r\n* register a new user and sign in\r\n* click the view details on a recipe\r\n* click the upvote button\r\n\r\n#### Any background context you want to provide?\r\nN/A\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#154946347 users can upvote a recipe\r\n\r\n#### screenshots\r\n<img width=\"600\" alt=\"screen shot 2018-02-06 at 9 01 56 pm\" src=\"https://user-images.githubusercontent.com/24475008/35881417-035c2640-0b81-11e8-8375-1b6504d49772.png\">\r\n\r\n\r\n#### Questions:\r\nN/A","created_at":"2018-02-06T20:02:53Z","updated_at":"2018-02-06T20:03:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01b04d6c6fca393545e27c03682c94492f46b690","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/69/commits","review_comments_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/69/comments","review_comment_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/69/comments","statuses_url":"https://api.github.com/repos/purpose50/More-Recipes/statuses/7794ad4bb8c611c78e3a778c428344c9a1f34c12","head":{"label":"purpose50:feature/#154946347/users-can-upvote-a-recipe","ref":"feature/#154946347/users-can-upvote-a-recipe","sha":"7794ad4bb8c611c78e3a778c428344c9a1f34c12","user":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"repo":{"id":107537101,"name":"More-Recipes","full_name":"purpose50/More-Recipes","owner":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/purpose50/More-Recipes","description":"More-Recipes​ provides a platform for users to share the awesome and exciting recipe ideas they have invented or learnt.","fork":false,"url":"https://api.github.com/repos/purpose50/More-Recipes","forks_url":"https://api.github.com/repos/purpose50/More-Recipes/forks","keys_url":"https://api.github.com/repos/purpose50/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/purpose50/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/purpose50/More-Recipes/teams","hooks_url":"https://api.github.com/repos/purpose50/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/purpose50/More-Recipes/events","assignees_url":"https://api.github.com/repos/purpose50/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/purpose50/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/purpose50/More-Recipes/tags","blobs_url":"https://api.github.com/repos/purpose50/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/purpose50/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/purpose50/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/purpose50/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/purpose50/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/purpose50/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/purpose50/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/purpose50/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/purpose50/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/purpose50/More-Recipes/subscription","commits_url":"https://api.github.com/repos/purpose50/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/purpose50/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/purpose50/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/purpose50/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/purpose50/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/purpose50/More-Recipes/merges","archive_url":"https://api.github.com/repos/purpose50/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/purpose50/More-Recipes/downloads","issues_url":"https://api.github.com/repos/purpose50/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/purpose50/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/purpose50/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/purpose50/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/purpose50/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/purpose50/More-Recipes/deployments","created_at":"2017-10-19T11:24:02Z","updated_at":"2017-12-14T12:14:29Z","pushed_at":"2018-02-06T20:02:54Z","git_url":"git://github.com/purpose50/More-Recipes.git","ssh_url":"git@github.com:purpose50/More-Recipes.git","clone_url":"https://github.com/purpose50/More-Recipes.git","svn_url":"https://github.com/purpose50/More-Recipes","homepage":"https://ay-more-recipes.herokuapp.com/","size":18432,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"master"}},"base":{"label":"purpose50:develope","ref":"develope","sha":"521035ba3d5328f91b7fd126b802554f5ad2a07c","user":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"repo":{"id":107537101,"name":"More-Recipes","full_name":"purpose50/More-Recipes","owner":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/purpose50/More-Recipes","description":"More-Recipes​ provides a platform for users to share the awesome and exciting recipe ideas they have invented or learnt.","fork":false,"url":"https://api.github.com/repos/purpose50/More-Recipes","forks_url":"https://api.github.com/repos/purpose50/More-Recipes/forks","keys_url":"https://api.github.com/repos/purpose50/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/purpose50/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/purpose50/More-Recipes/teams","hooks_url":"https://api.github.com/repos/purpose50/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/purpose50/More-Recipes/events","assignees_url":"https://api.github.com/repos/purpose50/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/purpose50/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/purpose50/More-Recipes/tags","blobs_url":"https://api.github.com/repos/purpose50/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/purpose50/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/purpose50/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/purpose50/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/purpose50/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/purpose50/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/purpose50/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/purpose50/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/purpose50/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/purpose50/More-Recipes/subscription","commits_url":"https://api.github.com/repos/purpose50/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/purpose50/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/purpose50/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/purpose50/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/purpose50/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/purpose50/More-Recipes/merges","archive_url":"https://api.github.com/repos/purpose50/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/purpose50/More-Recipes/downloads","issues_url":"https://api.github.com/repos/purpose50/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/purpose50/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/purpose50/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/purpose50/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/purpose50/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/purpose50/More-Recipes/deployments","created_at":"2017-10-19T11:24:02Z","updated_at":"2017-12-14T12:14:29Z","pushed_at":"2018-02-06T20:02:54Z","git_url":"git://github.com/purpose50/More-Recipes.git","ssh_url":"git@github.com:purpose50/More-Recipes.git","clone_url":"https://github.com/purpose50/More-Recipes.git","svn_url":"https://github.com/purpose50/More-Recipes","homepage":"https://ay-more-recipes.herokuapp.com/","size":18432,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/69"},"html":{"href":"https://github.com/purpose50/More-Recipes/pull/69"},"issue":{"href":"https://api.github.com/repos/purpose50/More-Recipes/issues/69"},"comments":{"href":"https://api.github.com/repos/purpose50/More-Recipes/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/purpose50/More-Recipes/statuses/7794ad4bb8c611c78e3a778c428344c9a1f34c12"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}