{"action":"created","comment":{"url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/comments/171010214","pull_request_review_id":99788549,"id":171010214,"diff_hunk":"@@ -3,7 +3,18 @@ const app = express();\n const bodyParser = require('body-parser');\n const path = require('path');\n const axios = require('axios');\n+var database = require('../database/index.js');","path":"server/index.js","position":4,"original_position":4,"commit_id":"584887479ae2d31ec10a44a07746d3405cfc66ee","original_commit_id":"584887479ae2d31ec10a44a07746d3405cfc66ee","user":{"login":"kentacohut","id":32720019,"avatar_url":"https://avatars2.githubusercontent.com/u/32720019?v=4","gravatar_id":"","url":"https://api.github.com/users/kentacohut","html_url":"https://github.com/kentacohut","followers_url":"https://api.github.com/users/kentacohut/followers","following_url":"https://api.github.com/users/kentacohut/following{/other_user}","gists_url":"https://api.github.com/users/kentacohut/gists{/gist_id}","starred_url":"https://api.github.com/users/kentacohut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentacohut/subscriptions","organizations_url":"https://api.github.com/users/kentacohut/orgs","repos_url":"https://api.github.com/users/kentacohut/repos","events_url":"https://api.github.com/users/kentacohut/events{/privacy}","received_events_url":"https://api.github.com/users/kentacohut/received_events","type":"User","site_admin":false},"body":"Thanks Raymond! Good find!","created_at":"2018-02-27T17:53:28Z","updated_at":"2018-02-27T17:53:29Z","html_url":"https://github.com/CodeRoundTheCampfire/photo-stream/pull/2#discussion_r171010214","pull_request_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/comments/171010214"},"html":{"href":"https://github.com/CodeRoundTheCampfire/photo-stream/pull/2#discussion_r171010214"},"pull_request":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/2"}},"in_reply_to_id":171003400},"pull_request":{"url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/2","id":171717003,"html_url":"https://github.com/CodeRoundTheCampfire/photo-stream/pull/2","diff_url":"https://github.com/CodeRoundTheCampfire/photo-stream/pull/2.diff","patch_url":"https://github.com/CodeRoundTheCampfire/photo-stream/pull/2.patch","issue_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues/2","number":2,"state":"open","locked":false,"title":"Feature - setState from Database","user":{"login":"kentacohut","id":32720019,"avatar_url":"https://avatars2.githubusercontent.com/u/32720019?v=4","gravatar_id":"","url":"https://api.github.com/users/kentacohut","html_url":"https://github.com/kentacohut","followers_url":"https://api.github.com/users/kentacohut/followers","following_url":"https://api.github.com/users/kentacohut/following{/other_user}","gists_url":"https://api.github.com/users/kentacohut/gists{/gist_id}","starred_url":"https://api.github.com/users/kentacohut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentacohut/subscriptions","organizations_url":"https://api.github.com/users/kentacohut/orgs","repos_url":"https://api.github.com/users/kentacohut/repos","events_url":"https://api.github.com/users/kentacohut/events{/privacy}","received_events_url":"https://api.github.com/users/kentacohut/received_events","type":"User","site_admin":false},"body":"@rjgcabrera ,\r\nMind checking out this code? I implemented a couple things listed below. Let me know what you think. Thanks!\r\n\r\nserver/index.js\r\n- implemented a GET request that pulls photos from my database\\\r\n\r\ndatabase/index.js\r\n- implemented a query for a single restaurants photos\r\n\r\nclient/src/index.jsx\r\n- implemented a GET request that calls to the server for the data it pulled from the database\r\n- implemented a setState function that changes the current photos array to the data that is pulled from the database","created_at":"2018-02-27T16:35:58Z","updated_at":"2018-02-27T17:53:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e3ed9fb3fa5496a402354f490da3ceafeb5c28f","assignee":{"login":"rjgcabrera","id":12312917,"avatar_url":"https://avatars1.githubusercontent.com/u/12312917?v=4","gravatar_id":"","url":"https://api.github.com/users/rjgcabrera","html_url":"https://github.com/rjgcabrera","followers_url":"https://api.github.com/users/rjgcabrera/followers","following_url":"https://api.github.com/users/rjgcabrera/following{/other_user}","gists_url":"https://api.github.com/users/rjgcabrera/gists{/gist_id}","starred_url":"https://api.github.com/users/rjgcabrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjgcabrera/subscriptions","organizations_url":"https://api.github.com/users/rjgcabrera/orgs","repos_url":"https://api.github.com/users/rjgcabrera/repos","events_url":"https://api.github.com/users/rjgcabrera/events{/privacy}","received_events_url":"https://api.github.com/users/rjgcabrera/received_events","type":"User","site_admin":false},"assignees":[{"login":"rjgcabrera","id":12312917,"avatar_url":"https://avatars1.githubusercontent.com/u/12312917?v=4","gravatar_id":"","url":"https://api.github.com/users/rjgcabrera","html_url":"https://github.com/rjgcabrera","followers_url":"https://api.github.com/users/rjgcabrera/followers","following_url":"https://api.github.com/users/rjgcabrera/following{/other_user}","gists_url":"https://api.github.com/users/rjgcabrera/gists{/gist_id}","starred_url":"https://api.github.com/users/rjgcabrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjgcabrera/subscriptions","organizations_url":"https://api.github.com/users/rjgcabrera/orgs","repos_url":"https://api.github.com/users/rjgcabrera/repos","events_url":"https://api.github.com/users/rjgcabrera/events{/privacy}","received_events_url":"https://api.github.com/users/rjgcabrera/received_events","type":"User","site_admin":false},{"login":"kentacohut","id":32720019,"avatar_url":"https://avatars2.githubusercontent.com/u/32720019?v=4","gravatar_id":"","url":"https://api.github.com/users/kentacohut","html_url":"https://github.com/kentacohut","followers_url":"https://api.github.com/users/kentacohut/followers","following_url":"https://api.github.com/users/kentacohut/following{/other_user}","gists_url":"https://api.github.com/users/kentacohut/gists{/gist_id}","starred_url":"https://api.github.com/users/kentacohut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentacohut/subscriptions","organizations_url":"https://api.github.com/users/kentacohut/orgs","repos_url":"https://api.github.com/users/kentacohut/repos","events_url":"https://api.github.com/users/kentacohut/events{/privacy}","received_events_url":"https://api.github.com/users/kentacohut/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/2/commits","review_comments_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/2/comments","review_comment_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues/2/comments","statuses_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/statuses/584887479ae2d31ec10a44a07746d3405cfc66ee","head":{"label":"CodeRoundTheCampfire:feat/usedatabase","ref":"feat/usedatabase","sha":"584887479ae2d31ec10a44a07746d3405cfc66ee","user":{"login":"CodeRoundTheCampfire","id":36682607,"avatar_url":"https://avatars3.githubusercontent.com/u/36682607?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeRoundTheCampfire","html_url":"https://github.com/CodeRoundTheCampfire","followers_url":"https://api.github.com/users/CodeRoundTheCampfire/followers","following_url":"https://api.github.com/users/CodeRoundTheCampfire/following{/other_user}","gists_url":"https://api.github.com/users/CodeRoundTheCampfire/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeRoundTheCampfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeRoundTheCampfire/subscriptions","organizations_url":"https://api.github.com/users/CodeRoundTheCampfire/orgs","repos_url":"https://api.github.com/users/CodeRoundTheCampfire/repos","events_url":"https://api.github.com/users/CodeRoundTheCampfire/events{/privacy}","received_events_url":"https://api.github.com/users/CodeRoundTheCampfire/received_events","type":"Organization","site_admin":false},"repo":{"id":122385834,"name":"photo-stream","full_name":"CodeRoundTheCampfire/photo-stream","owner":{"login":"CodeRoundTheCampfire","id":36682607,"avatar_url":"https://avatars3.githubusercontent.com/u/36682607?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeRoundTheCampfire","html_url":"https://github.com/CodeRoundTheCampfire","followers_url":"https://api.github.com/users/CodeRoundTheCampfire/followers","following_url":"https://api.github.com/users/CodeRoundTheCampfire/following{/other_user}","gists_url":"https://api.github.com/users/CodeRoundTheCampfire/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeRoundTheCampfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeRoundTheCampfire/subscriptions","organizations_url":"https://api.github.com/users/CodeRoundTheCampfire/orgs","repos_url":"https://api.github.com/users/CodeRoundTheCampfire/repos","events_url":"https://api.github.com/users/CodeRoundTheCampfire/events{/privacy}","received_events_url":"https://api.github.com/users/CodeRoundTheCampfire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeRoundTheCampfire/photo-stream","description":"Photo Stream","fork":false,"url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream","forks_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/forks","keys_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/teams","hooks_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/hooks","issue_events_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues/events{/number}","events_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/events","assignees_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/assignees{/user}","branches_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/branches{/branch}","tags_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/tags","blobs_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/languages","stargazers_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/stargazers","contributors_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/contributors","subscribers_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/subscribers","subscription_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/subscription","commits_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/contents/{+path}","compare_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/merges","archive_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/downloads","issues_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues{/number}","pulls_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/labels{/name}","releases_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/releases{/id}","deployments_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/deployments","created_at":"2018-02-21T19:53:40Z","updated_at":"2018-02-21T19:58:54Z","pushed_at":"2018-02-27T16:35:59Z","git_url":"git://github.com/CodeRoundTheCampfire/photo-stream.git","ssh_url":"git@github.com:CodeRoundTheCampfire/photo-stream.git","clone_url":"https://github.com/CodeRoundTheCampfire/photo-stream.git","svn_url":"https://github.com/CodeRoundTheCampfire/photo-stream","homepage":null,"size":889,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CodeRoundTheCampfire:master","ref":"master","sha":"0d82c44d227d0004932e863a8956765932306dbd","user":{"login":"CodeRoundTheCampfire","id":36682607,"avatar_url":"https://avatars3.githubusercontent.com/u/36682607?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeRoundTheCampfire","html_url":"https://github.com/CodeRoundTheCampfire","followers_url":"https://api.github.com/users/CodeRoundTheCampfire/followers","following_url":"https://api.github.com/users/CodeRoundTheCampfire/following{/other_user}","gists_url":"https://api.github.com/users/CodeRoundTheCampfire/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeRoundTheCampfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeRoundTheCampfire/subscriptions","organizations_url":"https://api.github.com/users/CodeRoundTheCampfire/orgs","repos_url":"https://api.github.com/users/CodeRoundTheCampfire/repos","events_url":"https://api.github.com/users/CodeRoundTheCampfire/events{/privacy}","received_events_url":"https://api.github.com/users/CodeRoundTheCampfire/received_events","type":"Organization","site_admin":false},"repo":{"id":122385834,"name":"photo-stream","full_name":"CodeRoundTheCampfire/photo-stream","owner":{"login":"CodeRoundTheCampfire","id":36682607,"avatar_url":"https://avatars3.githubusercontent.com/u/36682607?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeRoundTheCampfire","html_url":"https://github.com/CodeRoundTheCampfire","followers_url":"https://api.github.com/users/CodeRoundTheCampfire/followers","following_url":"https://api.github.com/users/CodeRoundTheCampfire/following{/other_user}","gists_url":"https://api.github.com/users/CodeRoundTheCampfire/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeRoundTheCampfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeRoundTheCampfire/subscriptions","organizations_url":"https://api.github.com/users/CodeRoundTheCampfire/orgs","repos_url":"https://api.github.com/users/CodeRoundTheCampfire/repos","events_url":"https://api.github.com/users/CodeRoundTheCampfire/events{/privacy}","received_events_url":"https://api.github.com/users/CodeRoundTheCampfire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeRoundTheCampfire/photo-stream","description":"Photo Stream","fork":false,"url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream","forks_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/forks","keys_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/teams","hooks_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/hooks","issue_events_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues/events{/number}","events_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/events","assignees_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/assignees{/user}","branches_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/branches{/branch}","tags_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/tags","blobs_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/languages","stargazers_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/stargazers","contributors_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/contributors","subscribers_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/subscribers","subscription_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/subscription","commits_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/contents/{+path}","compare_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/merges","archive_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/downloads","issues_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues{/number}","pulls_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/labels{/name}","releases_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/releases{/id}","deployments_url":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/deployments","created_at":"2018-02-21T19:53:40Z","updated_at":"2018-02-21T19:58:54Z","pushed_at":"2018-02-27T16:35:59Z","git_url":"git://github.com/CodeRoundTheCampfire/photo-stream.git","ssh_url":"git@github.com:CodeRoundTheCampfire/photo-stream.git","clone_url":"https://github.com/CodeRoundTheCampfire/photo-stream.git","svn_url":"https://github.com/CodeRoundTheCampfire/photo-stream","homepage":null,"size":889,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/2"},"html":{"href":"https://github.com/CodeRoundTheCampfire/photo-stream/pull/2"},"issue":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues/2"},"comments":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/CodeRoundTheCampfire/photo-stream/statuses/584887479ae2d31ec10a44a07746d3405cfc66ee"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kentacohut"}}