{"action":"created","comment":{"url":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/comments/201530849","pull_request_review_id":136051256,"id":201530849,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTUzMDg0OQ==","diff_hunk":"@@ -1,23 +1,34 @@\n import { call, takeEvery, put } from 'redux-saga/effects';\n-import { getPlaceIds } from 'services/placeApi';\n+import { getPlaceIds, getPlace } from 'services/placeApi';\n import { getRandom } from 'lib/utils';\n import placeActions from 'actions/placeActions';\n import {\n   FETCH_PLACES,\n+  FETCH_PLACE,\n } from 'actions/placeActionTypes';\n \n-function* fetchPlace(action) {\n+function* fetchPlaces(action) {\n   try {\n     const places = yield call(getPlaceIds, action.payload);\n-    const randomPlace = getRandom(places);\n+    const randomPlace = (getRandom(places)) ? getRandom(places) : {};","path":"client/sagas/placeSagas.js","position":16,"original_position":16,"commit_id":"ae02c2823eadee7cf59368974cdb8963fe517e1f","original_commit_id":"ae02c2823eadee7cf59368974cdb8963fe517e1f","user":{"login":"kaelvergara","id":8392565,"node_id":"MDQ6VXNlcjgzOTI1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8392565?v=4","gravatar_id":"","url":"https://api.github.com/users/kaelvergara","html_url":"https://github.com/kaelvergara","followers_url":"https://api.github.com/users/kaelvergara/followers","following_url":"https://api.github.com/users/kaelvergara/following{/other_user}","gists_url":"https://api.github.com/users/kaelvergara/gists{/gist_id}","starred_url":"https://api.github.com/users/kaelvergara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaelvergara/subscriptions","organizations_url":"https://api.github.com/users/kaelvergara/orgs","repos_url":"https://api.github.com/users/kaelvergara/repos","events_url":"https://api.github.com/users/kaelvergara/events{/privacy}","received_events_url":"https://api.github.com/users/kaelvergara/received_events","type":"User","site_admin":false},"body":"simplify","created_at":"2018-07-10T23:56:33Z","updated_at":"2018-07-10T23:56:33Z","html_url":"https://github.com/kaelvergara/where-for-lunch/pull/3#discussion_r201530849","pull_request_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/comments/201530849"},"html":{"href":"https://github.com/kaelvergara/where-for-lunch/pull/3#discussion_r201530849"},"pull_request":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/3","id":199929877,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5OTI5ODc3","html_url":"https://github.com/kaelvergara/where-for-lunch/pull/3","diff_url":"https://github.com/kaelvergara/where-for-lunch/pull/3.diff","patch_url":"https://github.com/kaelvergara/where-for-lunch/pull/3.patch","issue_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues/3","number":3,"state":"open","locked":false,"title":"Task3","user":{"login":"kaelvergara","id":8392565,"node_id":"MDQ6VXNlcjgzOTI1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8392565?v=4","gravatar_id":"","url":"https://api.github.com/users/kaelvergara","html_url":"https://github.com/kaelvergara","followers_url":"https://api.github.com/users/kaelvergara/followers","following_url":"https://api.github.com/users/kaelvergara/following{/other_user}","gists_url":"https://api.github.com/users/kaelvergara/gists{/gist_id}","starred_url":"https://api.github.com/users/kaelvergara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaelvergara/subscriptions","organizations_url":"https://api.github.com/users/kaelvergara/orgs","repos_url":"https://api.github.com/users/kaelvergara/repos","events_url":"https://api.github.com/users/kaelvergara/events{/privacy}","received_events_url":"https://api.github.com/users/kaelvergara/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-08T07:43:39Z","updated_at":"2018-07-10T23:56:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"513dc8a7015b7e6a9527b3341673b5b8bd334980","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/3/commits","review_comments_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/3/comments","review_comment_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues/3/comments","statuses_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/statuses/ae02c2823eadee7cf59368974cdb8963fe517e1f","head":{"label":"kaelvergara:task3","ref":"task3","sha":"ae02c2823eadee7cf59368974cdb8963fe517e1f","user":{"login":"kaelvergara","id":8392565,"node_id":"MDQ6VXNlcjgzOTI1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8392565?v=4","gravatar_id":"","url":"https://api.github.com/users/kaelvergara","html_url":"https://github.com/kaelvergara","followers_url":"https://api.github.com/users/kaelvergara/followers","following_url":"https://api.github.com/users/kaelvergara/following{/other_user}","gists_url":"https://api.github.com/users/kaelvergara/gists{/gist_id}","starred_url":"https://api.github.com/users/kaelvergara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaelvergara/subscriptions","organizations_url":"https://api.github.com/users/kaelvergara/orgs","repos_url":"https://api.github.com/users/kaelvergara/repos","events_url":"https://api.github.com/users/kaelvergara/events{/privacy}","received_events_url":"https://api.github.com/users/kaelvergara/received_events","type":"User","site_admin":false},"repo":{"id":139826349,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk4MjYzNDk=","name":"where-for-lunch","full_name":"kaelvergara/where-for-lunch","owner":{"login":"kaelvergara","id":8392565,"node_id":"MDQ6VXNlcjgzOTI1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8392565?v=4","gravatar_id":"","url":"https://api.github.com/users/kaelvergara","html_url":"https://github.com/kaelvergara","followers_url":"https://api.github.com/users/kaelvergara/followers","following_url":"https://api.github.com/users/kaelvergara/following{/other_user}","gists_url":"https://api.github.com/users/kaelvergara/gists{/gist_id}","starred_url":"https://api.github.com/users/kaelvergara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaelvergara/subscriptions","organizations_url":"https://api.github.com/users/kaelvergara/orgs","repos_url":"https://api.github.com/users/kaelvergara/repos","events_url":"https://api.github.com/users/kaelvergara/events{/privacy}","received_events_url":"https://api.github.com/users/kaelvergara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaelvergara/where-for-lunch","description":"nom nom nom","fork":true,"url":"https://api.github.com/repos/kaelvergara/where-for-lunch","forks_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/forks","keys_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/teams","hooks_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/hooks","issue_events_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues/events{/number}","events_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/events","assignees_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/assignees{/user}","branches_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/branches{/branch}","tags_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/tags","blobs_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/statuses/{sha}","languages_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/languages","stargazers_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/stargazers","contributors_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/contributors","subscribers_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/subscribers","subscription_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/subscription","commits_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/contents/{+path}","compare_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/merges","archive_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/downloads","issues_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues{/number}","pulls_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls{/number}","milestones_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/milestones{/number}","notifications_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/labels{/name}","releases_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/releases{/id}","deployments_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/deployments","created_at":"2018-07-05T09:25:53Z","updated_at":"2018-07-10T02:10:07Z","pushed_at":"2018-07-10T14:19:20Z","git_url":"git://github.com/kaelvergara/where-for-lunch.git","ssh_url":"git@github.com:kaelvergara/where-for-lunch.git","clone_url":"https://github.com/kaelvergara/where-for-lunch.git","svn_url":"https://github.com/kaelvergara/where-for-lunch","homepage":null,"size":612,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"kaelvergara:master","ref":"master","sha":"e4337c80a4bc7008871b08ff1671c08ba4f408bf","user":{"login":"kaelvergara","id":8392565,"node_id":"MDQ6VXNlcjgzOTI1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8392565?v=4","gravatar_id":"","url":"https://api.github.com/users/kaelvergara","html_url":"https://github.com/kaelvergara","followers_url":"https://api.github.com/users/kaelvergara/followers","following_url":"https://api.github.com/users/kaelvergara/following{/other_user}","gists_url":"https://api.github.com/users/kaelvergara/gists{/gist_id}","starred_url":"https://api.github.com/users/kaelvergara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaelvergara/subscriptions","organizations_url":"https://api.github.com/users/kaelvergara/orgs","repos_url":"https://api.github.com/users/kaelvergara/repos","events_url":"https://api.github.com/users/kaelvergara/events{/privacy}","received_events_url":"https://api.github.com/users/kaelvergara/received_events","type":"User","site_admin":false},"repo":{"id":139826349,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk4MjYzNDk=","name":"where-for-lunch","full_name":"kaelvergara/where-for-lunch","owner":{"login":"kaelvergara","id":8392565,"node_id":"MDQ6VXNlcjgzOTI1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8392565?v=4","gravatar_id":"","url":"https://api.github.com/users/kaelvergara","html_url":"https://github.com/kaelvergara","followers_url":"https://api.github.com/users/kaelvergara/followers","following_url":"https://api.github.com/users/kaelvergara/following{/other_user}","gists_url":"https://api.github.com/users/kaelvergara/gists{/gist_id}","starred_url":"https://api.github.com/users/kaelvergara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaelvergara/subscriptions","organizations_url":"https://api.github.com/users/kaelvergara/orgs","repos_url":"https://api.github.com/users/kaelvergara/repos","events_url":"https://api.github.com/users/kaelvergara/events{/privacy}","received_events_url":"https://api.github.com/users/kaelvergara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaelvergara/where-for-lunch","description":"nom nom nom","fork":true,"url":"https://api.github.com/repos/kaelvergara/where-for-lunch","forks_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/forks","keys_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/teams","hooks_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/hooks","issue_events_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues/events{/number}","events_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/events","assignees_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/assignees{/user}","branches_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/branches{/branch}","tags_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/tags","blobs_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/statuses/{sha}","languages_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/languages","stargazers_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/stargazers","contributors_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/contributors","subscribers_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/subscribers","subscription_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/subscription","commits_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/contents/{+path}","compare_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/merges","archive_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/downloads","issues_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues{/number}","pulls_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls{/number}","milestones_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/milestones{/number}","notifications_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/labels{/name}","releases_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/releases{/id}","deployments_url":"https://api.github.com/repos/kaelvergara/where-for-lunch/deployments","created_at":"2018-07-05T09:25:53Z","updated_at":"2018-07-10T02:10:07Z","pushed_at":"2018-07-10T14:19:20Z","git_url":"git://github.com/kaelvergara/where-for-lunch.git","ssh_url":"git@github.com:kaelvergara/where-for-lunch.git","clone_url":"https://github.com/kaelvergara/where-for-lunch.git","svn_url":"https://github.com/kaelvergara/where-for-lunch","homepage":null,"size":612,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/3"},"html":{"href":"https://github.com/kaelvergara/where-for-lunch/pull/3"},"issue":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues/3"},"comments":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/kaelvergara/where-for-lunch/statuses/ae02c2823eadee7cf59368974cdb8963fe517e1f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kaelvergara"}}