{"action":"created","comment":{"url":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/comments/172607498","pull_request_review_id":101653342,"id":172607498,"diff_hunk":"@@ -22,48 +32,69 @@ var books = [{\n         author: \"Средний\"\n     }\n ];\n-\n+*/\n \n app.get('/', (req, res) => {\n     res.send('Hello api');\n });\n \n app.get('/books', (req, res) => {\n-    res.send(books);\n+    //res.send(books);\n+    Book.find((err, book) => {\n+        if (err) throw err;\n+        return res.send(book);","path":"app.js","position":40,"original_position":40,"commit_id":"89ba96bce74582c369e1e6cc35790e4b08378b2f","original_commit_id":"89ba96bce74582c369e1e6cc35790e4b08378b2f","user":{"login":"GitStearis","id":18196222,"avatar_url":"https://avatars2.githubusercontent.com/u/18196222?v=4","gravatar_id":"","url":"https://api.github.com/users/GitStearis","html_url":"https://github.com/GitStearis","followers_url":"https://api.github.com/users/GitStearis/followers","following_url":"https://api.github.com/users/GitStearis/following{/other_user}","gists_url":"https://api.github.com/users/GitStearis/gists{/gist_id}","starred_url":"https://api.github.com/users/GitStearis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitStearis/subscriptions","organizations_url":"https://api.github.com/users/GitStearis/orgs","repos_url":"https://api.github.com/users/GitStearis/repos","events_url":"https://api.github.com/users/GitStearis/events{/privacy}","received_events_url":"https://api.github.com/users/GitStearis/received_events","type":"User","site_admin":false},"body":"This should not be returned. It's better to write just `res.send(book)`","created_at":"2018-03-06T18:05:27Z","updated_at":"2018-03-06T18:21:35Z","html_url":"https://github.com/des1nteresado/bookshelf/pull/3#discussion_r172607498","pull_request_url":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/comments/172607498"},"html":{"href":"https://github.com/des1nteresado/bookshelf/pull/3#discussion_r172607498"},"pull_request":{"href":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/3","id":173236205,"html_url":"https://github.com/des1nteresado/bookshelf/pull/3","diff_url":"https://github.com/des1nteresado/bookshelf/pull/3.diff","patch_url":"https://github.com/des1nteresado/bookshelf/pull/3.patch","issue_url":"https://api.github.com/repos/des1nteresado/bookshelf/issues/3","number":3,"state":"open","locked":false,"title":"Create bookshelf","user":{"login":"des1nteresado","id":31657749,"avatar_url":"https://avatars0.githubusercontent.com/u/31657749?v=4","gravatar_id":"","url":"https://api.github.com/users/des1nteresado","html_url":"https://github.com/des1nteresado","followers_url":"https://api.github.com/users/des1nteresado/followers","following_url":"https://api.github.com/users/des1nteresado/following{/other_user}","gists_url":"https://api.github.com/users/des1nteresado/gists{/gist_id}","starred_url":"https://api.github.com/users/des1nteresado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des1nteresado/subscriptions","organizations_url":"https://api.github.com/users/des1nteresado/orgs","repos_url":"https://api.github.com/users/des1nteresado/repos","events_url":"https://api.github.com/users/des1nteresado/events{/privacy}","received_events_url":"https://api.github.com/users/des1nteresado/received_events","type":"User","site_admin":false},"body":"In this pull request i make:\r\n1) Connect mongoDB\r\n2) Create mongoDB schema for books\r\n2) Modified everything roads\r\n ","created_at":"2018-03-06T18:00:06Z","updated_at":"2018-03-06T18:21:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d20fa120cfc920c8e582aa861361d5185d433565","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/3/commits","review_comments_url":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/3/comments","review_comment_url":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/des1nteresado/bookshelf/issues/3/comments","statuses_url":"https://api.github.com/repos/des1nteresado/bookshelf/statuses/89ba96bce74582c369e1e6cc35790e4b08378b2f","head":{"label":"des1nteresado:master","ref":"master","sha":"89ba96bce74582c369e1e6cc35790e4b08378b2f","user":{"login":"des1nteresado","id":31657749,"avatar_url":"https://avatars0.githubusercontent.com/u/31657749?v=4","gravatar_id":"","url":"https://api.github.com/users/des1nteresado","html_url":"https://github.com/des1nteresado","followers_url":"https://api.github.com/users/des1nteresado/followers","following_url":"https://api.github.com/users/des1nteresado/following{/other_user}","gists_url":"https://api.github.com/users/des1nteresado/gists{/gist_id}","starred_url":"https://api.github.com/users/des1nteresado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des1nteresado/subscriptions","organizations_url":"https://api.github.com/users/des1nteresado/orgs","repos_url":"https://api.github.com/users/des1nteresado/repos","events_url":"https://api.github.com/users/des1nteresado/events{/privacy}","received_events_url":"https://api.github.com/users/des1nteresado/received_events","type":"User","site_admin":false},"repo":{"id":123963931,"name":"bookshelf","full_name":"des1nteresado/bookshelf","owner":{"login":"des1nteresado","id":31657749,"avatar_url":"https://avatars0.githubusercontent.com/u/31657749?v=4","gravatar_id":"","url":"https://api.github.com/users/des1nteresado","html_url":"https://github.com/des1nteresado","followers_url":"https://api.github.com/users/des1nteresado/followers","following_url":"https://api.github.com/users/des1nteresado/following{/other_user}","gists_url":"https://api.github.com/users/des1nteresado/gists{/gist_id}","starred_url":"https://api.github.com/users/des1nteresado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des1nteresado/subscriptions","organizations_url":"https://api.github.com/users/des1nteresado/orgs","repos_url":"https://api.github.com/users/des1nteresado/repos","events_url":"https://api.github.com/users/des1nteresado/events{/privacy}","received_events_url":"https://api.github.com/users/des1nteresado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/des1nteresado/bookshelf","description":null,"fork":false,"url":"https://api.github.com/repos/des1nteresado/bookshelf","forks_url":"https://api.github.com/repos/des1nteresado/bookshelf/forks","keys_url":"https://api.github.com/repos/des1nteresado/bookshelf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/des1nteresado/bookshelf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/des1nteresado/bookshelf/teams","hooks_url":"https://api.github.com/repos/des1nteresado/bookshelf/hooks","issue_events_url":"https://api.github.com/repos/des1nteresado/bookshelf/issues/events{/number}","events_url":"https://api.github.com/repos/des1nteresado/bookshelf/events","assignees_url":"https://api.github.com/repos/des1nteresado/bookshelf/assignees{/user}","branches_url":"https://api.github.com/repos/des1nteresado/bookshelf/branches{/branch}","tags_url":"https://api.github.com/repos/des1nteresado/bookshelf/tags","blobs_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/refs{/sha}","trees_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/des1nteresado/bookshelf/statuses/{sha}","languages_url":"https://api.github.com/repos/des1nteresado/bookshelf/languages","stargazers_url":"https://api.github.com/repos/des1nteresado/bookshelf/stargazers","contributors_url":"https://api.github.com/repos/des1nteresado/bookshelf/contributors","subscribers_url":"https://api.github.com/repos/des1nteresado/bookshelf/subscribers","subscription_url":"https://api.github.com/repos/des1nteresado/bookshelf/subscription","commits_url":"https://api.github.com/repos/des1nteresado/bookshelf/commits{/sha}","git_commits_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/commits{/sha}","comments_url":"https://api.github.com/repos/des1nteresado/bookshelf/comments{/number}","issue_comment_url":"https://api.github.com/repos/des1nteresado/bookshelf/issues/comments{/number}","contents_url":"https://api.github.com/repos/des1nteresado/bookshelf/contents/{+path}","compare_url":"https://api.github.com/repos/des1nteresado/bookshelf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/des1nteresado/bookshelf/merges","archive_url":"https://api.github.com/repos/des1nteresado/bookshelf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/des1nteresado/bookshelf/downloads","issues_url":"https://api.github.com/repos/des1nteresado/bookshelf/issues{/number}","pulls_url":"https://api.github.com/repos/des1nteresado/bookshelf/pulls{/number}","milestones_url":"https://api.github.com/repos/des1nteresado/bookshelf/milestones{/number}","notifications_url":"https://api.github.com/repos/des1nteresado/bookshelf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/des1nteresado/bookshelf/labels{/name}","releases_url":"https://api.github.com/repos/des1nteresado/bookshelf/releases{/id}","deployments_url":"https://api.github.com/repos/des1nteresado/bookshelf/deployments","created_at":"2018-03-05T18:53:38Z","updated_at":"2018-03-05T18:56:28Z","pushed_at":"2018-03-06T18:00:07Z","git_url":"git://github.com/des1nteresado/bookshelf.git","ssh_url":"git@github.com:des1nteresado/bookshelf.git","clone_url":"https://github.com/des1nteresado/bookshelf.git","svn_url":"https://github.com/des1nteresado/bookshelf","homepage":null,"size":1682,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"des1nteresado:daniil","ref":"daniil","sha":"9e45d49b47a2e6343209ce3440e7794a8bff29ed","user":{"login":"des1nteresado","id":31657749,"avatar_url":"https://avatars0.githubusercontent.com/u/31657749?v=4","gravatar_id":"","url":"https://api.github.com/users/des1nteresado","html_url":"https://github.com/des1nteresado","followers_url":"https://api.github.com/users/des1nteresado/followers","following_url":"https://api.github.com/users/des1nteresado/following{/other_user}","gists_url":"https://api.github.com/users/des1nteresado/gists{/gist_id}","starred_url":"https://api.github.com/users/des1nteresado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des1nteresado/subscriptions","organizations_url":"https://api.github.com/users/des1nteresado/orgs","repos_url":"https://api.github.com/users/des1nteresado/repos","events_url":"https://api.github.com/users/des1nteresado/events{/privacy}","received_events_url":"https://api.github.com/users/des1nteresado/received_events","type":"User","site_admin":false},"repo":{"id":123963931,"name":"bookshelf","full_name":"des1nteresado/bookshelf","owner":{"login":"des1nteresado","id":31657749,"avatar_url":"https://avatars0.githubusercontent.com/u/31657749?v=4","gravatar_id":"","url":"https://api.github.com/users/des1nteresado","html_url":"https://github.com/des1nteresado","followers_url":"https://api.github.com/users/des1nteresado/followers","following_url":"https://api.github.com/users/des1nteresado/following{/other_user}","gists_url":"https://api.github.com/users/des1nteresado/gists{/gist_id}","starred_url":"https://api.github.com/users/des1nteresado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des1nteresado/subscriptions","organizations_url":"https://api.github.com/users/des1nteresado/orgs","repos_url":"https://api.github.com/users/des1nteresado/repos","events_url":"https://api.github.com/users/des1nteresado/events{/privacy}","received_events_url":"https://api.github.com/users/des1nteresado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/des1nteresado/bookshelf","description":null,"fork":false,"url":"https://api.github.com/repos/des1nteresado/bookshelf","forks_url":"https://api.github.com/repos/des1nteresado/bookshelf/forks","keys_url":"https://api.github.com/repos/des1nteresado/bookshelf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/des1nteresado/bookshelf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/des1nteresado/bookshelf/teams","hooks_url":"https://api.github.com/repos/des1nteresado/bookshelf/hooks","issue_events_url":"https://api.github.com/repos/des1nteresado/bookshelf/issues/events{/number}","events_url":"https://api.github.com/repos/des1nteresado/bookshelf/events","assignees_url":"https://api.github.com/repos/des1nteresado/bookshelf/assignees{/user}","branches_url":"https://api.github.com/repos/des1nteresado/bookshelf/branches{/branch}","tags_url":"https://api.github.com/repos/des1nteresado/bookshelf/tags","blobs_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/refs{/sha}","trees_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/des1nteresado/bookshelf/statuses/{sha}","languages_url":"https://api.github.com/repos/des1nteresado/bookshelf/languages","stargazers_url":"https://api.github.com/repos/des1nteresado/bookshelf/stargazers","contributors_url":"https://api.github.com/repos/des1nteresado/bookshelf/contributors","subscribers_url":"https://api.github.com/repos/des1nteresado/bookshelf/subscribers","subscription_url":"https://api.github.com/repos/des1nteresado/bookshelf/subscription","commits_url":"https://api.github.com/repos/des1nteresado/bookshelf/commits{/sha}","git_commits_url":"https://api.github.com/repos/des1nteresado/bookshelf/git/commits{/sha}","comments_url":"https://api.github.com/repos/des1nteresado/bookshelf/comments{/number}","issue_comment_url":"https://api.github.com/repos/des1nteresado/bookshelf/issues/comments{/number}","contents_url":"https://api.github.com/repos/des1nteresado/bookshelf/contents/{+path}","compare_url":"https://api.github.com/repos/des1nteresado/bookshelf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/des1nteresado/bookshelf/merges","archive_url":"https://api.github.com/repos/des1nteresado/bookshelf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/des1nteresado/bookshelf/downloads","issues_url":"https://api.github.com/repos/des1nteresado/bookshelf/issues{/number}","pulls_url":"https://api.github.com/repos/des1nteresado/bookshelf/pulls{/number}","milestones_url":"https://api.github.com/repos/des1nteresado/bookshelf/milestones{/number}","notifications_url":"https://api.github.com/repos/des1nteresado/bookshelf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/des1nteresado/bookshelf/labels{/name}","releases_url":"https://api.github.com/repos/des1nteresado/bookshelf/releases{/id}","deployments_url":"https://api.github.com/repos/des1nteresado/bookshelf/deployments","created_at":"2018-03-05T18:53:38Z","updated_at":"2018-03-05T18:56:28Z","pushed_at":"2018-03-06T18:00:07Z","git_url":"git://github.com/des1nteresado/bookshelf.git","ssh_url":"git@github.com:des1nteresado/bookshelf.git","clone_url":"https://github.com/des1nteresado/bookshelf.git","svn_url":"https://github.com/des1nteresado/bookshelf","homepage":null,"size":1682,"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":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/des1nteresado/bookshelf/pulls/3"},"html":{"href":"https://github.com/des1nteresado/bookshelf/pull/3"},"issue":{"href":"https://api.github.com/repos/des1nteresado/bookshelf/issues/3"},"comments":{"href":"https://api.github.com/repos/des1nteresado/bookshelf/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/des1nteresado/bookshelf/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/des1nteresado/bookshelf/statuses/89ba96bce74582c369e1e6cc35790e4b08378b2f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"GitStearis"}}